Is there a way in javascript/jQuery to take two variables with values \"60px\" and \"40px\" and add them together to get \"100px\"?
Or in a more general sense, I\'m tryi
Probably the most efficient way is
parseInt("40px", 10) + parseInt("60px", 10) + "px"
The 10's in the parseInt calls are necessary to protect against the value being mistakenly calculated in something other than base 10.
10