<html><head> <title>Sample Code</title> <script type="text/javascript"> function CheckFloatingPoint(ValueNumeric) { var objRegex = /(^-?\d\d*\.\d\d*$)|(^-?\.\d\d*$)/; //check for numeric characters if(objRegex.test(ValueNumeric)) { alert("Your Given Input \""+ValueNumeric+"\" Is Correct."); } else { alert("Your Given Input\""+ValueNumeric+"\" Is Not Correct."); } } </script></head> <body bgcolor=#00ff00 alink=blue vlink=blue> <FORM name="windowEvent"> Number : <input type="text" name="txtnumber" /> <input type="button" value="Check Floating Point" name="btnCheckFloatingPoint" onClick="CheckFloatingPoint(txtnumber.value)" /> </FORM> </body></html>
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: