 |
 |
| |
|
| |
|
| |
jquery text
|
| |
|
| |
| JQuery Textbox to accept only numbers - digits
|
| |
|
|
Niculae |
|
|
6 Comments |
|
Tags:
JQuery textbox, textbox numbers validation |
| |
|
Few days back, my friend asked me how can we make a textbox which just accepts only numbers specially digits only. And, for his I come up with this solution of textbox which only accepts digits, and if you try to enter any alpha bates in it then it displays the error message with animation. View Demo HTML Code <input type="text" name="quantity" id="quantity" /> <span id="errmsg"></span> As you can see above, I've given the name and id of textbox to "quantity" in this example.This is the textbox which only accepts numbers (digits only). You can see "span" after textbox which is used to display the error message with fading effect using jQuery. Javascript Code < |
|
|
|
|
|
|
| |
|
|
| |
|
| |
1 |
|
|
|
|
 |
 |
| |
|
| |
|
| |
JQuery
Community |
| |
|
| |
|
| |
|
| |
|
| |
|
| |
JQuery
Popular Posts |
| |
|
| |
|
| |
|
| |
|
| |
JQuery Poll |
| |
|
| |
|
| |
|
| |
JQuery Categories |
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|