<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Accordion Madness</title>
	<atom:link href="http://www.learningjquery.com/2007/03/accordion-madness/feed" rel="self" type="application/rss+xml" />
	<link>http://www.learningjquery.com/2007/03/accordion-madness</link>
	<description>Tips, techniques, and tutorials for the jQuery JavaScript library</description>
	<lastBuildDate>Sun, 14 Mar 2010 16:12:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ethan Gardner</title>
		<link>http://www.learningjquery.com/2007/03/accordion-madness/comment-page-3#comment-79833</link>
		<dc:creator>Ethan Gardner</dc:creator>
		<pubDate>Thu, 11 Mar 2010 15:48:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/03/accordion-madness#comment-79833</guid>
		<description>I modified the last script in the article so the expanded item can be styled differently than the collapsed one. You can see it at &lt;a href=&quot;http://jsfiddle.net/KDC9c/1/&quot; rel=&quot;nofollow&quot;&gt;http://jsfiddle.net/KDC9c/1/&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>I modified the last script in the article so the expanded item can be styled differently than the collapsed one. You can see it at <a href="http://jsfiddle.net/KDC9c/1/" rel="nofollow">http://jsfiddle.net/KDC9c/1/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adi</title>
		<link>http://www.learningjquery.com/2007/03/accordion-madness/comment-page-3#comment-79425</link>
		<dc:creator>Adi</dc:creator>
		<pubDate>Tue, 22 Dec 2009 06:13:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/03/accordion-madness#comment-79425</guid>
		<description>How can I also load a page (and expand the menu) every time I click on h3?

I&#039;m trying this code below

&lt;pre&gt;&lt;code&gt;$(document).ready(function() {
  function addDanNav()
  {
    $(&quot;#navigation &gt; li &gt; ul&quot;).css(&quot;display&quot;,&quot;none&quot;);
    $(&quot;#navigation &gt; li &gt; a.selected&quot;).siblings(&quot;ul&quot;).css(&quot;display&quot;,&quot;block&quot;);
    $(&quot;#navigation &gt; li &gt; a&quot;).click(function(){
      if ($(this).siblings(&quot;ul&quot;).length &gt; 0)
      {
        if ($(this).hasClass(&quot;active&quot;))
        {
          return true;
        }
        else
        {
          $(this).parent(&quot;li&quot;).siblings(&quot;li&quot;).children(&quot;ul&quot;).slideUp(&quot;slow&quot;);
          $(this).parent(&quot;li&quot;).siblings(&quot;li&quot;).children(&quot;a&quot;).removeClass(&quot;active&quot;);
          $(this).siblings(&quot;ul&quot;).slideDown(&quot;slow&quot;);
          $(this).addClass(&quot;active&quot;);
          return false;
        }
      }
    });
  }

  $(document).ready(function(){
    if ($(&quot;#navigation&quot;).length &gt; 0)
    {
      addDanNav();
    }
  });
});&lt;/code&gt;&lt;/pre&gt;

Anyone could help me?

Thank you!</description>
		<content:encoded><![CDATA[<p>How can I also load a page (and expand the menu) every time I click on h3?</p>
<p>I&#8217;m trying this code below</p>
<pre><code>$(document).ready(function() {
  function addDanNav()
  {
    $("#navigation &gt; li &gt; ul").css("display","none");
    $("#navigation &gt; li &gt; a.selected").siblings("ul").css("display","block");
    $("#navigation &gt; li &gt; a").click(function(){
      if ($(this).siblings("ul").length &gt; 0)
      {
        if ($(this).hasClass("active"))
        {
          return true;
        }
        else
        {
          $(this).parent("li").siblings("li").children("ul").slideUp("slow");
          $(this).parent("li").siblings("li").children("a").removeClass("active");
          $(this).siblings("ul").slideDown("slow");
          $(this).addClass("active");
          return false;
        }
      }
    });
  }

  $(document).ready(function(){
    if ($("#navigation").length &gt; 0)
    {
      addDanNav();
    }
  });
});</code></pre>
<p>Anyone could help me?</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: +20 excellent jquery menus tutorials &#124; ExtraTuts</title>
		<link>http://www.learningjquery.com/2007/03/accordion-madness/comment-page-3#comment-79253</link>
		<dc:creator>+20 excellent jquery menus tutorials &#124; ExtraTuts</dc:creator>
		<pubDate>Sun, 29 Nov 2009 14:51:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/03/accordion-madness#comment-79253</guid>
		<description>[...] from here15.Make a Mega Drop-Down Menu with jQueryvisit the tutorial from here16.accordion menuvisit the tutorial from here17.Simple animated menu with jqueryvisit the tutorial from here18.apple style menu and improve it [...]</description>
		<content:encoded><![CDATA[<p>[...] from here15.Make a Mega Drop-Down Menu with jQueryvisit the tutorial from here16.accordion menuvisit the tutorial from here17.Simple animated menu with jqueryvisit the tutorial from here18.apple style menu and improve it [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Accordion menuler &#171; Open Source</title>
		<link>http://www.learningjquery.com/2007/03/accordion-madness/comment-page-3#comment-79155</link>
		<dc:creator>Accordion menuler &#171; Open Source</dc:creator>
		<pubDate>Sat, 07 Nov 2009 21:46:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/03/accordion-madness#comment-79155</guid>
		<description>[...]   [...]</description>
		<content:encoded><![CDATA[<p>[...]   [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Knothe</title>
		<link>http://www.learningjquery.com/2007/03/accordion-madness/comment-page-3#comment-79108</link>
		<dc:creator>Bob Knothe</dc:creator>
		<pubDate>Sat, 24 Oct 2009 16:35:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/03/accordion-madness#comment-79108</guid>
		<description>Karl,

Thanks for the TUT - it&#039;s been very helpful.

Question: Can you have nested accordion (hide\show) where the inside  tag has it&#039;s own trigger?

Bob</description>
		<content:encoded><![CDATA[<p>Karl,</p>
<p>Thanks for the TUT &#8211; it&#8217;s been very helpful.</p>
<p>Question: Can you have nested accordion (hide\show) where the inside  tag has it&#8217;s own trigger?</p>
<p>Bob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Accordion &#8211; Plugins, Demos and Tutorials - Hidden Pixels</title>
		<link>http://www.learningjquery.com/2007/03/accordion-madness/comment-page-3#comment-79107</link>
		<dc:creator>Accordion &#8211; Plugins, Demos and Tutorials - Hidden Pixels</dc:creator>
		<pubDate>Sat, 24 Oct 2009 06:24:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/03/accordion-madness#comment-79107</guid>
		<description>[...] Accordion Madness [...]</description>
		<content:encoded><![CDATA[<p>[...] Accordion Madness [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Austin Siewert</title>
		<link>http://www.learningjquery.com/2007/03/accordion-madness/comment-page-3#comment-79106</link>
		<dc:creator>Austin Siewert</dc:creator>
		<pubDate>Fri, 23 Oct 2009 23:55:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/03/accordion-madness#comment-79106</guid>
		<description>Thanks Karl, 

So cool and so simple!!! I always make it harder on myself than it needs to be. I guess that goes with the territory as I&#039;m just getting into jQuery and don&#039;t know the full API.

I&#039;m actually going to order your book tonight, been thinking about it for awhile and now is the time!</description>
		<content:encoded><![CDATA[<p>Thanks Karl, </p>
<p>So cool and so simple!!! I always make it harder on myself than it needs to be. I guess that goes with the territory as I&#8217;m just getting into jQuery and don&#8217;t know the full API.</p>
<p>I&#8217;m actually going to order your book tonight, been thinking about it for awhile and now is the time!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Swedberg</title>
		<link>http://www.learningjquery.com/2007/03/accordion-madness/comment-page-3#comment-79104</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Fri, 23 Oct 2009 21:30:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/03/accordion-madness#comment-79104</guid>
		<description>Hi Austin,

Sorry I don&#039;t have time for a detailed reply, but the answer is yes. Something like this would work (if I&#039;m understanding your html structure correctly):

&lt;pre&gt;&lt;code&gt;
$(&#039;.sidebar a&#039;).click(function() {
  var thisClass = this.className;
  $(&#039;h3.&#039; + thisClass).trigger(&#039;click&#039;);
  return false;
);
&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hi Austin,</p>
<p>Sorry I don&#8217;t have time for a detailed reply, but the answer is yes. Something like this would work (if I&#8217;m understanding your html structure correctly):</p>
<pre><code>
$('.sidebar a').click(function() {
  var thisClass = this.className;
  $('h3.' + thisClass).trigger('click');
  return false;
);
</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Austin Siewert</title>
		<link>http://www.learningjquery.com/2007/03/accordion-madness/comment-page-3#comment-79103</link>
		<dc:creator>Austin Siewert</dc:creator>
		<pubDate>Fri, 23 Oct 2009 20:58:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/03/accordion-madness#comment-79103</guid>
		<description>Karl, any way to activate the accordion from outside? For instance, I would like to open/close the div&#039;s via the H3&#039;s or from an outside &lt;a&amp;gt&#039;s. I have the accordions wrapped in #accordion div and have &lt;a&gt;&#039;s in a sidebar with the same classes on the anchors as the #accordion &gt; h3&#039;s. Does that make sense?</description>
		<content:encoded><![CDATA[<p>Karl, any way to activate the accordion from outside? For instance, I would like to open/close the div&#8217;s via the H3&#8217;s or from an outside &lt;a&amp;gt&#8217;s. I have the accordions wrapped in #accordion div and have &lt;a&gt;&#8217;s in a sidebar with the same classes on the anchors as the #accordion &gt; h3&#8217;s. Does that make sense?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Javier Rios</title>
		<link>http://www.learningjquery.com/2007/03/accordion-madness/comment-page-3#comment-79011</link>
		<dc:creator>Javier Rios</dc:creator>
		<pubDate>Tue, 06 Oct 2009 20:18:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/03/accordion-madness#comment-79011</guid>
		<description>Thank you for this tutorial it has been a great help. I am facing a problem that I am unable to solve though. My structure is similar to your with one difference, the H3 and div following are wrapped in a Div. This is done so that I can hide or show certain sections depending on your rights.

There are also times when the H3 is followed by a UL instead of a div. In the js I put the class name to show or hide. 

I am able to get the h3 to toggle between the div or ul, I am not able to get it to show or hide other open divs or uls. I will have multiple sections open instead of one closing as another is being open.</description>
		<content:encoded><![CDATA[<p>Thank you for this tutorial it has been a great help. I am facing a problem that I am unable to solve though. My structure is similar to your with one difference, the H3 and div following are wrapped in a Div. This is done so that I can hide or show certain sections depending on your rights.</p>
<p>There are also times when the H3 is followed by a UL instead of a div. In the js I put the class name to show or hide. </p>
<p>I am able to get the h3 to toggle between the div or ul, I am not able to get it to show or hide other open divs or uls. I will have multiple sections open instead of one closing as another is being open.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
