I have a simple textbox in which users enter number. Does jQuery have a isDigit function that will allow me to show an alert box if users ente
textbox
isDigit
Value validation wouldn't be a responsibility of jQuery. You can use pure JavaScript for this. Two ways that come to my mind are:
/^\d+$/.match(value) Number(value) == value