View Full Version : string to num and num to string how?
04-27-2006, 06:05 PM
string to num and num to string how?
04-27-2006, 06:41 PM
i mean-i have a variable with a string - "50px" and i want just the 50 in a variable which is no string...
04-27-2006, 06:47 PM
parseInt(variable) should strip the 50 from the px for you...
var newvar =parseInt(oldvar);
should work for you.
04-29-2006, 01:48 PM
thanks - where can I learn more on this specific function?
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.