title: How to stop the repeat of the jQuery functions mouseenter() and mouseleave()?
body: <p>Problem: When i hover the mouse on the div block, the ul list items are displayed with a fadein, and when i distract the mouse from the div block, the ul list items are fadeing out, and when i do the same action fast 5,6,7 or more times and when i do nothing with the mouse, the functions mouseenter() and mouseleave() are repeating because of the fadeing duration. I want that for example if the function mouseenter() has started, the other function mouseleave() would not start even if the user has the mouse distracted from the div block, the mouseleave() function must wait until the mouseenter() function has finished his job, and then the mouseleave() function can start, and so on.. How can do it?</p>
  
  <p>Demo: <a href="https://jsfiddle.net/qcvL1xjg/" rel="nofollow">https://jsfiddle.net/qcvL1xjg/</a></p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div class="block"&gt;&lt;/div&gt;
  &lt;ul class="responser"&gt;
      &lt;li&gt;Home&lt;/li&gt;
      &lt;li&gt;Product&lt;/li&gt;
      &lt;li&gt;About&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>CSS:</p>
  
  <pre><code>.block {
      width: 100px;
      height: 100px;
      background-color: red;
  }
  </code></pre>
  
  <p>jQuery:</p>
  
  <pre><code>$(document).ready(function() {
       $('.responser').hide();
  
     $(".block").mouseenter(function() {     
             $('.responser').fadeIn(1250);           
     });
  
     $('.block').mouseleave(function() {     
             $('.responser').fadeOut(1250);         
     });
  });
  </code></pre>