I want to validate that the value entered by a user in a textbox is a multiple of 100 using jQuery. How can I do that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are a lot of fun ways. Lets collect the input value itself:
So, ways:
The boring right way
A bit more fun way
“I love odd bases”
Regexes
More fun (but definitely more robust) regexes
And the winner is…
But if I were you I’d stop with first way. 🙂