<?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: Stupid Simple jQuery Accordion Menu</title>
	<atom:link href="http://www.stemkoski.com/stupid-simple-jquery-accordion-menu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stemkoski.com/stupid-simple-jquery-accordion-menu/</link>
	<description>Web design tips &#38; tricks plus anything else I want to talk about...</description>
	<lastBuildDate>Tue, 09 Mar 2010 02:52:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mauricio Hernández</title>
		<link>http://www.stemkoski.com/stupid-simple-jquery-accordion-menu/comment-page-3/#comment-30204</link>
		<dc:creator>Mauricio Hernández</dc:creator>
		<pubDate>Mon, 08 Mar 2010 16:41:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.stemkoski.com/?p=1079#comment-30204</guid>
		<description>Sorry, the solution is :
$(document).ready(function() {
 
	//ACCORDION BUTTON ACTION	
	$(&#039;div.accordionButton&#039;).click(function() {
		$(&#039;div.accordionContent&#039;).slideUp(&#039;normal&#039;);	
		$(this).next().slideToggle(&#039;normal&#039;);
	});
 
	//HIDE THE DIVS ON PAGE LOAD	
	$(&quot;div.accordionContent&quot;).hide();
 
});</description>
		<content:encoded><![CDATA[<p>Sorry, the solution is :<br />
$(document).ready(function() {</p>
<p>	//ACCORDION BUTTON ACTION<br />
	$(&#8216;div.accordionButton&#8217;).click(function() {<br />
		$(&#8216;div.accordionContent&#8217;).slideUp(&#8216;normal&#8217;);<br />
		$(this).next().slideToggle(&#8216;normal&#8217;);<br />
	});</p>
<p>	//HIDE THE DIVS ON PAGE LOAD<br />
	$(&#8220;div.accordionContent&#8221;).hide();</p>
<p>});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mauricio Hernández</title>
		<link>http://www.stemkoski.com/stupid-simple-jquery-accordion-menu/comment-page-3/#comment-30203</link>
		<dc:creator>Mauricio Hernández</dc:creator>
		<pubDate>Mon, 08 Mar 2010 16:39:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.stemkoski.com/?p=1079#comment-30203</guid>
		<description>Hi i think it&#039;s better to use slideToggle instead of slideUp or slideDown.

Thanks for the simplicity.


$(document).ready(function() {
 
	//ACCORDION BUTTON ACTION
	$(&#039;div.accordionButton&#039;).click(function() {
 
		if($(this).next().is(&#039;:visible&#039;)) {
			$(this).next().slideToggle(&#039;normal&#039;);
		} else {	
			$(this).next().slideToggle(&#039;normal&#039;);
		}
	});
 
        //HIDE THE DIVS ON PAGE LOAD	
	$(&quot;div.accordionContent&quot;).hide();
});</description>
		<content:encoded><![CDATA[<p>Hi i think it&#8217;s better to use slideToggle instead of slideUp or slideDown.</p>
<p>Thanks for the simplicity.</p>
<p>$(document).ready(function() {</p>
<p>	//ACCORDION BUTTON ACTION<br />
	$(&#8216;div.accordionButton&#8217;).click(function() {</p>
<p>		if($(this).next().is(&#8216;:visible&#8217;)) {<br />
			$(this).next().slideToggle(&#8216;normal&#8217;);<br />
		} else {<br />
			$(this).next().slideToggle(&#8216;normal&#8217;);<br />
		}<br />
	});</p>
<p>        //HIDE THE DIVS ON PAGE LOAD<br />
	$(&#8220;div.accordionContent&#8221;).hide();<br />
});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charlie</title>
		<link>http://www.stemkoski.com/stupid-simple-jquery-accordion-menu/comment-page-2/#comment-29654</link>
		<dc:creator>Charlie</dc:creator>
		<pubDate>Wed, 24 Feb 2010 22:35:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.stemkoski.com/?p=1079#comment-29654</guid>
		<description>Thanks so much for this quick/easy solution.  I&#039;ll definitely be saving it in my &quot;little bag &#039;o tricks!&quot;</description>
		<content:encoded><![CDATA[<p>Thanks so much for this quick/easy solution.  I&#8217;ll definitely be saving it in my &#8220;little bag &#8216;o tricks!&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.stemkoski.com/stupid-simple-jquery-accordion-menu/comment-page-2/#comment-28924</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Tue, 09 Feb 2010 17:33:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.stemkoski.com/?p=1079#comment-28924</guid>
		<description>Awesome! thanks for the help Ryan, works great!</description>
		<content:encoded><![CDATA[<p>Awesome! thanks for the help Ryan, works great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Stemkoski</title>
		<link>http://www.stemkoski.com/stupid-simple-jquery-accordion-menu/comment-page-2/#comment-28923</link>
		<dc:creator>Ryan Stemkoski</dc:creator>
		<pubDate>Tue, 09 Feb 2010 17:10:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.stemkoski.com/?p=1079#comment-28923</guid>
		<description>The easiest way would be to add something like this to the javascript section:
&lt;pre lang=&quot;javascript&quot;&gt;
//ACCORDION BUTTON ACTION	
$(&#039;.hide&#039;).click(function() {		
    $(&#039;div.accordionContent&#039;).slideUp(&#039;normal&#039;);	
});
&lt;/pre&gt;
Then you can add a span or some other element with the class &quot;hide&quot; and when it is clicked it will slide up all open accordion panels.
&lt;pre lang=&quot;html4strict&quot;&gt;
&lt;span class=&quot;hide&quot;&gt;Hide all Panels&lt;/span&gt;
&lt;/pre&gt;
Basically the Javascript code will execute anytime someone clicks and element with the class hide.  It will then loop through all the DIV elements with the class accordionContent and close them if they are open.  If you wish to open them all you would do the same thing except instead of using .slideUP in the jQuery you would use slideDown.</description>
		<content:encoded><![CDATA[<p>The easiest way would be to add something like this to the javascript section:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">//ACCORDION BUTTON ACTION	</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.hide'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>		
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div.accordionContent'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideUp</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'normal'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Then you can add a span or some other element with the class &#8220;hide&#8221; and when it is clicked it will slide up all open accordion panels.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;hide&quot;</span>&gt;</span>Hide all Panels<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;</span></pre></div></div>

<p>Basically the Javascript code will execute anytime someone clicks and element with the class hide.  It will then loop through all the DIV elements with the class accordionContent and close them if they are open.  If you wish to open them all you would do the same thing except instead of using .slideUP in the jQuery you would use slideDown.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.stemkoski.com/stupid-simple-jquery-accordion-menu/comment-page-2/#comment-28922</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Tue, 09 Feb 2010 16:09:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.stemkoski.com/?p=1079#comment-28922</guid>
		<description>Thanks for the great script! anyone have a quick way to add a show/hide all button to this function? Trying to figure it out myself to no avail yet...</description>
		<content:encoded><![CDATA[<p>Thanks for the great script! anyone have a quick way to add a show/hide all button to this function? Trying to figure it out myself to no avail yet&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan</title>
		<link>http://www.stemkoski.com/stupid-simple-jquery-accordion-menu/comment-page-2/#comment-28706</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Fri, 05 Feb 2010 18:34:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.stemkoski.com/?p=1079#comment-28706</guid>
		<description>Great script. Easy to use and practical. My kudos!

I have this scenario and I would like your help: when I click in a link in the content (that loads another page of the site), the same menu unfolds again. I would prefer though to avoid having the menu unfodling for a second time (to get rid of the animation when it reloads). Is it possible?</description>
		<content:encoded><![CDATA[<p>Great script. Easy to use and practical. My kudos!</p>
<p>I have this scenario and I would like your help: when I click in a link in the content (that loads another page of the site), the same menu unfolds again. I would prefer though to avoid having the menu unfodling for a second time (to get rid of the animation when it reloads). Is it possible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nikhil</title>
		<link>http://www.stemkoski.com/stupid-simple-jquery-accordion-menu/comment-page-2/#comment-28077</link>
		<dc:creator>nikhil</dc:creator>
		<pubDate>Wed, 27 Jan 2010 12:15:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.stemkoski.com/?p=1079#comment-28077</guid>
		<description>really a stupid n simple jquery accordian Menu.
thanx for sharing it...</description>
		<content:encoded><![CDATA[<p>really a stupid n simple jquery accordian Menu.<br />
thanx for sharing it&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.stemkoski.com/stupid-simple-jquery-accordion-menu/comment-page-2/#comment-27641</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Mon, 18 Jan 2010 21:41:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.stemkoski.com/?p=1079#comment-27641</guid>
		<description>Thanks for this, I went through so many complex solutions to this before finally coming across this one which I could actually figure out.

Also, thanks for posting a way to have the menu close again on click.
Just what I was looking for!</description>
		<content:encoded><![CDATA[<p>Thanks for this, I went through so many complex solutions to this before finally coming across this one which I could actually figure out.</p>
<p>Also, thanks for posting a way to have the menu close again on click.<br />
Just what I was looking for!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marie</title>
		<link>http://www.stemkoski.com/stupid-simple-jquery-accordion-menu/comment-page-2/#comment-27472</link>
		<dc:creator>Marie</dc:creator>
		<pubDate>Fri, 15 Jan 2010 07:03:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.stemkoski.com/?p=1079#comment-27472</guid>
		<description>Stupid Simple Accordion indeed. Thanks a lot!

I read through most of the comments but I can&#039;t seem to find the answer. How do you keep an accordion stay open upon page change? The opened accordion should be the one that the user previously clicked.</description>
		<content:encoded><![CDATA[<p>Stupid Simple Accordion indeed. Thanks a lot!</p>
<p>I read through most of the comments but I can&#8217;t seem to find the answer. How do you keep an accordion stay open upon page change? The opened accordion should be the one that the user previously clicked.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
