I\'m using the following Javascript to restrict a text field on my website to only accept numerical input, and no other letters or characters. The problem is, it REALLY reje
You can handle te event on html by introducing keypresshandler function
function keypresshandler(event) { var charCode = event.keyCode; //You condition if (charCode == 58 ){ event.preventDefault(); return false; } }