title: How to execute Jquery code only once??
body: <p>I have one jquery method and i used call that method on click of a button .
  So in that code i have one line " <code>$("#loadingMessage").css('padding-top','6%');</code> "   i need this line execute only once when we call that method first time,later that i gone this line .</p>
  
  <p>So please help me to find one way</p>
  
  <p>the entire method script is below</p>
  
  <pre><code>$('#SearchButton').click(function() {                 
           $(".spinner").css('visibility','hidden');
  
           $("#loadingMessage").css('padding-top','6%'); //I want this line execute only once, i mean first time
  
           loaderStart();
           document.getElementById('loadinggif3').style.display = "block";
           $("#loadinggif3").show();
           $(".col-sm-9").css('visibility','hidden');
            var str = $('#SearchText').val();
            str = str.trim();
           if(str=="") return false;
          )};
  </code></pre>