$("form input").keypress(function (e) { alert(event.target) if(event.target == yoursubmitbutton) { //here u can submit the form return; } }); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)