$(document).ready(function () { $('input:text').keypress(function (e) { var keycode = (e.keyCode ? e.keyCode : e.which); if (keycode == 13) { return false; } }); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)