[jQuery] Form with two buttons determining which was clicked
Hi I have a form that has two submit buttons I am utilizing the
following ajaxSubmit code:
$("#form").submit( function() {
$(this).ajaxSubmit({
target: '#response'
});
return false;
}
);
Inside the submit function is there a way to figure out which button
was clicked? I tried doing something like
$(this).attr("id")
but it gives the id of the form, not the button ....
TIA