Click here to Skip to main content
15,896,478 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Simple javascript which takes only float values in textbox but after decimal 2 values and before also only 2 values
like
12.12
11.11
Posted
Comments
krumia 18-Feb-12 0:35am    
Tagged ASP.NET and C#4.0? This is all about Javascript!

1 solution

use this regular expression.
"[0-9][0-9]\\.[0-9][0-9]"
 
Share this answer
 
Comments
Kiirrii 18-Feb-12 8:02am    
you are so intlligent man...keep it up..
[no name] 21-Feb-12 22:48pm    
Yup thanx..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900