Dear,
i am adding a table row with text field using $('#table tr:last').before(""); When in press the enter key automatically form is submitted. How can i prevent the form submission when pressing enter key. I have used the code,
$("form :input").on("keypress", function(e) {
return e.keyCode != 13;
});
it works when the table row is not added using $('#table tr:last').before("");
please help me.