We can able to restrict entering special characters inside the text input field in a form Call “forceNumber(event)” function the “onKeyPress” event on input field like this, <input name="text" maxlength="17" onkeypress="return forceNumber(event);" /> Use the following function to check in javascript itself 1 2 3 4 5 6 7 8 <script language="javascript"> function forceNumber(event){ var
RSS Feed
Twitter
Posted in
