How to prevent the alphabetic in html input box

technical talkiess
0

 <input title="'xyz"  value="'input" id="field1" 

name="field2"  onkeypress="return event.charCode>=48 && event.charCode<=57"  />



put the below code in input box


onkeypress="return event.charCode>=48 && event.charCode<=57"

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)