Subtract from a integer using jquery
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/12354458/subtract-from-an-integer-using-jquery">Subtract from an integer using jquery</a>  </p>
</blockquote>



<p>I want to subtract 50 from the offset of a div.
My code is this.</p>

<pre><code>if (scroll) {
    $('html, body').animate({"scrollTop":  $(scroll).offset().top - 50});
        $(scroll).css('color', 'blue');
        $(scroll).mouseleave(function() {
        $(this).css('color', 'black');
        });
    }
</code></pre>

<p>But this isn't working. Can someone help me ?</p>
