I have a .submit() event set up for form submission. I also have multiple forms on the page, but just one here for this example. I\'d like to know which submi
.submit()
A simple way to distinguish which or is pressed, is by checking their 'id':
$("button").click(function() { var id = $(this).attr('id'); ... });