I am validating a decimal number using JavaScript.
Am just using NaN
var a = 12345.67
Is there any javascript function to get the count or the value itself before and after decimal point .
before() should return 1234
after() should return 67
Please dont suggest a substring!
Here is a simple fiddle http://jsfiddle.net/qWtSc/
zzzzBov’s suggestion is this
Usage