Add javascript pixel values?
<p>Is there a way in javascript/jQuery to take two variables with values "60px" and "40px" and add them together to get "100px"?</p>

<p>Or in a more general sense, I'm trying to calculate positions of objects relative to other objects and it would be really convenient if I could do something like this:</p>

<pre><code>$('#object2').css('left', $('#object1').css('left')+'60px');
</code></pre>

<p>Of course, that just gives in invalid "40px60px".</p>
