Menu
What is the easiest way to separate the leading numbers
from a string of numbers?
For example: In CSS, the width can be in pixels as 200px;
After I get the current value, how can I get the number portion?
I was thinking: maxwidth = PXwidth.match(/d*/);
but this just returns a ‘NaN’
Note: The number portion may range from 0px to 1000px