Ok, I've scoured the net, tried every combination I can think of and now I'm going to go mad!
I've got a localStorage variable called SR which is input from a form.
I want to turn this into an integer.
When I use the console to examine the DOM, I can see:
""12345""
So it's definitely there but being stored as a string.
I've then got:
var SR = parseInt(localStorage.SR);
alert (SR);
The alert box just comes up with NaN
If anyone has any ideas it would save my sanity ![]()
Regards
Andy