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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -