Tomas
Tomas

Reputation: 11

Regex and jQuery, validate input field

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})$

Upvotes: 1

Views: 4063

Answers (1)

Related Questions