![]() |
Simplify jQuery syntax for form submission
I'm using this code to submit a hidden form from a link:
Code:
$("#request").submit(function () { |
This would ONLY make sense if you ONLY want to submit the form by clicking on #request-link. In that case you can combine it to
Code:
$("#request-link").live("click", function () { |
| All times are GMT +1. The time now is 09:02 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.