Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RegularExpression To Validate A Textbox That Should Allow Only Decimals And Numbers

I have a textbox for 'Area '.I need a regularexpression to validate textbox such that it should allow decimals to enter but no characters.Anyone can help me

like image 527
user42348 Avatar asked Jan 26 '26 02:01

user42348


1 Answers

Why not try something that's already built-in to JavaScript: the parseFloat function?

like image 193
Zach Hirsch Avatar answered Jan 27 '26 14:01

Zach Hirsch



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!