html - Style div like the submit button -
is possible in css style div looks submit button? of course it's easy 1 browser using css, i'm looking cross browser solution.
<div class="submit">submit</div> //should same like: <input type="submit" value="submit">
the reason is, have different kinds of buttons , go xhtml strict forbidden use input fields outside formular.
if use <button>
different in each browser.
with jquery easy make cross browser buttons: http://jqueryui.com/button/
to submit form bind click event. example: http://jsfiddle.net/aelms/
$(function() { $("a").button().click(function( event ) { event.preventdefault(); $(this).parent().submit(); }); }); <form action="#"> <a href="#">an anchor</a> </form>
Comments
Post a Comment