How to Validate Decimal Numbers in JavaScript | CodeTrail