I asked a similar question yesterday .. If I have for example 0-9999 , how can I turn this into 09999 , basically removing the – and make it an integer in javascript ?
var = 0-9999
turn that into 9999 integer
or var = 2-9999 , turn that into 29999
Thanks a bunch
Try this:
Note in Firefox,
parseInt()won’t work with leading zeros unless you pass in a radix (this appears to be a bug):Fiddler