1

I have an input field that only can be number and 2 decimals like 23,50. The decimal point have to be an comma , .It has to be exact to decimals even if thay are zeros. I use ths pattern in asp and it seems to be ok, but how can I use it in jquery?

^\d{1,9}(\,\d{2})$

1 Answer 1

1

See here:

jQuery validate: How to add a rule for regular expression validation?

Sign up to request clarification or add additional context in comments.

1 Comment

OK, but if I want to check on blure or keyup, how kan I use jquery validate then?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.