I have a function that I use to prevent multiple form backs:
var submitted = false;
$(function() {
$('form').bind('submit', function(e) {
if (!submitted && CanSubmit(e)) {
submitted = true;
return true;
} else {
return false;
}
});
});
In the method, CanSubmitI need to interrogate the button that the button was pressed to determine whether I should allow sending or not.
Please note that I cannot be attached to specific click events - see this previous question for more details.
In Firefox, I can use e.originalEvent.explicitOriginalTarget, but this is apparently not available in IE.
How can I get this value from a parameter ein a browser?