Note that there are some explanatory texts on larger screens.

plurals
  1. POanimated .effect() jqueryui fastest click
    text
    copied!<p>I have a error when fastest click in <code>tabs</code>, see image:</p> <p><img src="https://i.stack.imgur.com/6TpRE.jpg" alt="error ocurr in fastest click in tabs"></p> <p>Here's my js:</p> <pre><code>jQuery.fn.extend({ showcontent: function () { this.each(function () { var options = { direction: 'vertical' }; setTimeout(function () { $(this).siblings('li').hide(); }, 2000) if ($(this).is(':visible')) { $(this).siblings('li').hide(); } else { $(this).siblings('li').hide(); if (!$(this).is(":animated")) { $(this).toggle("clip", options, 400); } } }); return this; } }); $("#team1").addClass('tab_over'); $("#team1").click(function (e) { e.preventDefault(); $(this).addClass('tab_over').siblings().removeClass('tab_over'); $('#c1').showcontent(); return false; }); $("#team2").click(function (e) { e.preventDefault(); $(this).addClass('tab_over').siblings().removeClass('tab_over'); $('#c2').showcontent(); return false; }); </code></pre> <p>HTML:</p> <pre><code>&lt;ul class="x"&gt; &lt;li id="team1"&gt;&lt;a href="#"&gt;Misión &lt;/a&gt; &lt;/li&gt; &lt;li id="team2"&gt;&lt;a href="#"&gt;Visión&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;ul class="y"&gt; &lt;li id="c1" style=""&gt; &lt;div&gt;Content 1 &lt;br /&gt; &lt;/div&gt; &lt;/li&gt; &lt;li id="c2"&gt; &lt;div&gt;Content 2&lt;/div&gt; &lt;/li&gt; &lt;/ul&gt; </code></pre> <p>In fiddle: <a href="http://jsfiddle.net/Noranterry/Cam2U/" rel="nofollow noreferrer">http://jsfiddle.net/Noranterry/Cam2U/</a></p> <p>Thank you!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload