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%\');
If you have to run only once a generic function without a particular event binding then use this.
$(document).one('ready', function(){
// your code
$("#id").on("click", function() {
// other code
});
});
Useful if inside a function that is called many times (prevents onclick event from beein fired many times)