Here is my code, it works fine and gives an alert message as many times as I want, but submits the form only once.
$("div[contenteditable]").keypress(function (evt) {
var keycode = evt.charCode || evt.keyCode;
if (keycode == 13) { //Enter key's keycode
// $("#subcmt_smt").submit();
alert('cool');
return false;
}
});
How do I get it to submit the form every time?