Monday, February 29, 2016

Allow only numbers in textbox jquery

  • For allowing only numbers in textbox using jQuery, you can create key-press or key-down or key-up event for textbox by using textbox id or class.
  • In below example i used class name ("number") for applying validation to textbox. 
  • You just had copy above code and paste where you want to apply numeric validation.

For allowing numbers with decimal points 

No comments:

Post a Comment