Jquery Update Function like Unity3D -


my variable nim not updating seconds call

$( "#upbutton" ).click(function() {     var nim = $("a").css("margin-top").replace("px", "");     nim+=70;     $("#moved").css('margin-top',nim+'px'); }); 

nim = 70 , not change.

var nim = $("a").css("margin-top").replace("px", "");  $( "#upbutton" ).click(function() {     nim += 70;     $("#moved").css( 'margin-top', nim + 'px' ); }); 

Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -