This should be really straight forward.
I\'m checking if a form is being submitted using jquery. The form has multiple submit buttons with various values:
Bind the event to submit buttons instead of the form and then $(this) would have the reference to the buttons...
$(":submit").live('click', function() {
alert($(this).val());
})
EDIT As of jQuery 1.7 live is deprecated. Use on instead.
$(document).on("click", ":submit", function(e){
alert($(this).val());
});