Reputation: 83695
I am looking for some jquery plugin that would allow only numbers from a certain range in a text input field.
It would be great if it worked similar to a datepicker. I.e. user clicks on a text field and a tiny window with some numbers from let's say 0 to 23 appears. User than just selects the number and clicks ok.
Before you start suggesting a select instead of text input field, I cannot use select in this case for certain reasons.
Upvotes: 2
Views: 1926
Reputation: 10764
Plugins/Validation/Methods/range should get you started with making sure only a number in a certain range is entered.
Upvotes: 2