Richard Knop
Richard Knop

Reputation: 83695

Jquery plugin to allow only numbers in certain range in a text field?

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

Answers (1)

Fishcake
Fishcake

Reputation: 10764

Plugins/Validation/Methods/range should get you started with making sure only a number in a certain range is entered.

Upvotes: 2

Related Questions