I have a problem using jquery.validate on my asp.net mvc 3 app.
At least in Spain we use the "," to split a number from its decimals. Ok, using server side validation, if I put something like:
12.55 when the server validate it, it says that the value is not valid. If I put: 12,55 it works.
So far so good, but if I use jQuery validate, it says that 12,55 is invalid and 12.55 is the valid one. So, the client pass the validation but the server not, or the client doesnt pass but the server would.
So... can I change the locale for that kind of validation?
Thank you.
PS: How the server knows that I want to validate using "," and not "."? I don't remember if I specified that somewhere.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…