SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
$(document).ready(function(){ $('form[name="testform"]').submit( function(event){ // This is the ID of the clicked button var clicked_button_id = event.originalEvent.submitter.id; }); });