I have one jquery method and i used call that method on click of a button . So in that code i have one line \" $(\"#loadingMessage\").css(\'padding-top\',\'6%\');
$(\"#loadingMessage\").css(\'padding-top\',\'6%\');
Use a boolean as a global variable, like
var flag = true;
Now, set the condition before the execution, Like
if(flag){ $("#loadingMessage").css('padding-top','6%'); flag=false; }