title: Stop Timeout JQuery
body: <p>I have got the following code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $("#contact_min").toggle(function(){
    $("#contact_min").animate({
      height: "300px"
    }, 1000 );
  $(".arrow").html("&amp;#x25bc;")
  $(".popupcontent").html('foobar')
  },
  function(){
    $("#contact_min").animate({
      height: "28px"
    }, 1000 );
  $(".arrow").html("&amp;#x25B2;")
  $(".popupcontent").html("")
  });
  &lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
  $(document).ready(function(){
     setTimeout(function(){
    $("#contact_min").animate({
      height: "300px"
    }, 1000 );
  $(".arrow").html("&amp;#x25bc;")
  $(".popupcontent").html('foobar')
        }, 25000);
  
  });
   &lt;/script&gt;
  </code></pre>
  
  <p>This works perfectly, you can click on the div and it opens or you can wait 25 seconds and it opens. But When you click it, then wait 25 seconds, you have to click twice to close it again. This is because the timeout still opens the box, even when you clicked it already. Is there a way to stop the timeout after you click the box so the box doens't open after 25 seconds?</p>