/ Published in: jQuery
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.
Expand |
Embed | Plain Text
$(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(); }); });
Comments
Subscribe to comments
You need to login to post a comment.

can you show an example of how to make it submit the link by pressing the Enter key?
can you show an example of how to make it submit the link by pressing the Enter key?
can you show an example of how to make it submit the link by pressing the Enter key?
can you show an example of how to make it submit the link by pressing the Enter key?