Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery Tab switcher on Hover event instead of Click
    primarykey
    data
    text
    <p>I have a simple Tab switcher, right now you click on a tab to switch it but I would like to change it to a hover to switch instead.</p> <p>Below is the code and the JSFiddle shows it in action right now with the click event <a href="http://jsfiddle.net/jasondavis/p95nJ/" rel="nofollow">http://jsfiddle.net/jasondavis/p95nJ/</a></p> <pre><code>jQuery(document).ready(function($) { //tabs $("ul.tabrow li:first").addClass("active").show(); //Activate first tab $(".tab-content div:first").show(); //Show first tab content //On Click Event $("ul.tabrow li").click(function() { $("ul.tabrow li").removeClass("active"); //Remove any "active" class $(this).addClass("active"); //Add "active" class to selected tab $(".tab-box").hide(); //Hide all tab content var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content $(activeTab).fadeIn(); //Fade in the active content return false; }); }); </code></pre> <p>If you can help I would really appreciate it. I do NOT want to use jQueryUI</p> <p>The HTML</p> <pre><code>&lt;div class="tab-wrap"&gt; &lt;ul class="tabrow"&gt; &lt;li class=""&gt;&lt;a href="#tab_tags"&gt;Tags&lt;/a&gt;&lt;/li&gt; &lt;li class=""&gt;&lt;a href="#tab_recent"&gt;Recent Articles&lt;/a&gt;&lt;/li&gt; &lt;li class="active"&gt;&lt;a href="#tab_tools"&gt;Tools&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;div class="tab-content"&gt; &lt;div id="tab_tags" class="tab-box" style="display: none; "&gt; &lt;div class="taglist"&gt; &lt;ul id="tag-list"&gt; &lt;li&gt;&lt;a href="/tag/php/" title="View all 1 posts filed under PHP"&gt;PHP&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="/tag/personal/" title="View all 1 posts filed under Personal"&gt;Personal&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="/tag/wordpress/" title="View all 1 posts filed under Wordpress"&gt;Wordpress&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;div class="clear"&gt; &lt;/div&gt; &lt;a href="http://www.codedevelopr.com/archives/" id="tag-to-archive"&gt;View All Tags →&lt;/a&gt; &lt;/div&gt; &lt;div id="tab_recent" class="tab-box" style="display: none; "&gt; &lt;ul&gt; &lt;li class="widget"&gt;&lt;a href="/wordpress-custom-editor-quicktag-buttons/" title="WordPress Custom Editor Quicktag Buttons"&gt;WordPress Custom Editor Quicktag Buttons&lt;/a&gt;&lt;/li&gt; &lt;li class="widget"&gt;&lt;a href="/welcome/" title="Welcome to CodeDevelopr"&gt;Welcome to CodeDevelopr&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;div id="tab_tools" class="tab-box" style="display: block; "&gt; Coming Soon. In the mean time subscribe to the &lt;a href="http://feeds.feedburner.com/codedevelopr"&gt;RSS Feed&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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