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()
This works for me:
$("form").submit(function() { // Print the value of the button that was clicked console.log($(document.activeElement).val()); }