brite, a MVC Framework for jQuery

RegEx: Get number and unit from a css property string in JavaScript

April 4th, 2011 by jeremychone
var numeric = "12px".match(/d+/);
var unit = "12px".match(/D+$/);

Source: stackoverflow: convert css units

Comments are closed.