stop page from reloading when enter is pressed javascript code example
Example: 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();
}
});