I have this <div>:
<div class="ball" style="top: 1px;"></div>
The top property is set using jQuery function .css like so:
$( ".ball" ).css( { top : var_top } );
However, when I try to increment it using this syntax, it doesn't work:
$( ".ball" ).css( { top : "+=" + var_top } );
I even tried it in Firebug's console like this:
$( ".ball" ).css( { top : "+=7px" } );
$( ".ball" ).css( { top : "+=7" } );
but neither of these work either.