jQuery - How do I convert a pixel value (20px) to a number value (20)
- by John Himmelman
I know jQuery has a helper method for parsing unit strings into numbers. What is the jQuery method to do this?
var a = "20px";
var b = 20;
var c = $.parseMethod(a) + b;