title: How to disable this button for 5 sec after first click?
body: <p>In my code the button .getmore  gets clicked on scroll down. It loads data from database.Works fine. I need to make it disable for 5 sec after every click. How can I set this delay timer?</p>
  
  <p>Or is it possible to disable this function for 5 sec once it fires?  Disable the button or disable the function anything will work for me.   </p>
  
  <pre><code>$(window).scroll(function(){
      if ($(document).height() &lt;= $(window).scrollTop() + $(window).height()) {
          // Here how can i set a delay time of 5 sec before next click 
          $('.getmore').click(); 
      }
  });
  </code></pre>