Return to Snippet

Revision: 15166
at June 26, 2009 14:17 by wjbrown


Initial Code
$(document).ready( function(){

  // bind "click" event for links with title="submit" 
  $("a[title=submit]").click( function(){
    // it submits the form it is contained within
    $(this).parents("form").submit();
  });

});

Initial URL

                                

Initial Description
Just a little bit of code if u are interested in using links for form submission.  I'm aware of the dangers of using links in this case, but don't really care.  They're way easier to style.

Initial Title
jQuery submit form with an anchor tag

Initial Tags
form

Initial Language
jQuery