function disableEnter(e) {
e = (e) ? e : (window.event) ? event : null;
if (e) {
var charCode = (e.charCode) ? e.charCode :
((e.keyCode) ? e.keyCode :
((e.which) ? e.which : 0));
if (charCode == 13) {
e.returnValue = false;
}
}
}
Hope it helps! Happy Coding


No comments:
Post a Comment