I have a page with more than one form. If there was just one form, I’d do something like this:
$("input[type=submit]").click(function()
But how does jQuery recognize where the click came from if there is more than one form, and subsequently more than one submit on the page?
Thanks!
$('#form-id').bind('submit',function(){ });Is generally how you solve this problem.
jQuery submit docs has further info.