i have some JavaScript code that gets a variable from an input field, then parses it into a float. That all goes OK, but after that it gets weird: i put it
variable.split("."); and
FireBug gives me this error:
- timeSpanFull.split is not a function
Here is a snippet of the code:
- timeSpanFull = parseFloat(fetchById('timeSpan').value);
-
timeSpan = timeSpanFull.split(".");
I've looked at a few examples online, and cross checked with those, but came up with nothing. I also looked for hidden characters, but came up with nothing again.
Thanks in advance,
Naurus