SyntaxFix
Write A Post
Hire A Developer
Questions
Try this
boxValue = boxValue.replace(/[^0-9\.]/g,"");
This Regular Expression will allow only digits and dots in the value of text box.