I have a variable which stores the css value of a margin. I want to remove the "px" from the end so that i just have the number to work with. How can i do this?
Why the downvote? I can think of several places where parseInt and parseFloat are too picky for general use.
Isaac Lubow
2010-09-02 09:13:49
Heh yea, the same user also downvoted the question along with my answer before Alex Reitbort gave his answer. Probably just a malicious user :P
Rob Olmos
2010-09-02 16:15:41