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()
Here is my solution:
$('#form').submit(function(e){ console.log($('#'+e.originalEvent.submitter.id)); e.preventDefault(); });