I have this code: http://jsfiddle.net/xFvrV/2/
<form id="formTest" action="#" method="post">
<input type="text" id="textTest"/><br>
<input id="submitButtonDraft" type="submit" value="Save Draft" /><br>
<input id="submitButton" type="submit" value="Save" />
</form>
$(document).ready(function () {
$("#formTest").submit(function (e) {
e.preventDefault();
alert('toto');
});
});
How to know which button submit the form? and display it in the alert()
Thank you