/ Published in: PHP

Special chars, Numbers validation.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<script language=Javascript> function isSpaceKey(evt) { var charCode = (evt.which) ? evt.which : event.keyCode if ((charCode < 65 || charCode > 90) && (charCode < 97 || charCode > 123) && charCode != 32 && charCode != 8) { alert("Enter Characters Values"); return false; } return true; } </script> onkeypress="return isSpaceKey(event);"
Comments
