How to stop the page to be reload on keypress of enter code example
Example 1: How to stop the page to be reload on keypress of enter
BY LOVE
$("#tax_rate_name, #tax_rate_rate").keypress(function (event) {
if (event.keyCode == 13) {
event.preventDefault();
}
});
Example 2: How to stop the page to be reload on keypress of enter
BY LOVE
$("#tax_rate_name, #tax_rate_rate").keypress(function (event) {
if (event.keyCode == 13) {
event.preventDefault();
}
});