Monday, October 23rd, 2017

Allow Numbers/Digits in textbox¬† in javascript <HTML> <HEAD> <SCRIPT language=Javascript> <!– function isNumberKey(evt) { var unicode=e.charCode? e.charCode : e.keyCode if (unicode!=8){ if (unicode<48||unicode>57) return false;} return true; } //–> </SCRIPT> </HEAD> <BODY> <INPUT id=”txtChar” onkeypress=”return isNumberKey(event)” type=”text” name=”txtChar”> </BODY> </HTML> Here this above coding shows to use Javascript to allow only numbers to be entered [...]

Secure Linux Web Hosting