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()
I have found the best solution is
$(document.activeElement).attr('id')
This not only works on inputs, but it also works on button tags. Also it gets the id of the button.