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 = $.parseM
$.parseMethod = function (s) { return Number(s.replace(/px$/, '')); };
although how is this related to jQuery, I don't know