<?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: Peeling Away the jQuery Wrapper and Finding an Array</title>
	<atom:link href="http://www.learningjquery.com/2008/12/peeling-away-the-jquery-wrapper/feed" rel="self" type="application/rss+xml" />
	<link>http://www.learningjquery.com/2008/12/peeling-away-the-jquery-wrapper</link>
	<description>Tips, techniques, and tutorials for the jQuery JavaScript library</description>
	<lastBuildDate>Wed, 08 Feb 2012 13:50:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Chloe</title>
		<link>http://www.learningjquery.com/2008/12/peeling-away-the-jquery-wrapper/comment-page-1#comment-83566</link>
		<dc:creator>Chloe</dc:creator>
		<pubDate>Fri, 18 Mar 2011 02:05:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=196#comment-83566</guid>
		<description>thanks for making if clear this options require advanced jquery experience not to mention i&#039;m still a newbie when it comes to scripting .I will manage this to put it to my site. 
http://bit.ly/scriptmethis

thanks,
chloe andrea
follow me at facebook
facebook.com/chloe</description>
		<content:encoded><![CDATA[<p>thanks for making if clear this options require advanced jquery experience not to mention i&#8217;m still a newbie when it comes to scripting .I will manage this to put it to my site.<br />
<a href="http://bit.ly/scriptmethis" rel="nofollow">http://bit.ly/scriptmethis</a></p>
<p>thanks,<br />
chloe andrea<br />
follow me at facebook<br />
facebook.com/chloe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dakota</title>
		<link>http://www.learningjquery.com/2008/12/peeling-away-the-jquery-wrapper/comment-page-1#comment-79735</link>
		<dc:creator>Dakota</dc:creator>
		<pubDate>Tue, 23 Feb 2010 02:24:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=196#comment-79735</guid>
		<description>Thanks for the info on .get(), Cody. Previously, I&#039;ve just been adding a [0] to my jQuery objects, but certainly prefer a pure approach rather than a jQuery/JS frankenstein, where possible. Thanks again.</description>
		<content:encoded><![CDATA[<p>Thanks for the info on .get(), Cody. Previously, I&#8217;ve just been adding a [0] to my jQuery objects, but certainly prefer a pure approach rather than a jQuery/JS frankenstein, where possible. Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cyril gupta</title>
		<link>http://www.learningjquery.com/2008/12/peeling-away-the-jquery-wrapper/comment-page-1#comment-79467</link>
		<dc:creator>cyril gupta</dc:creator>
		<pubDate>Tue, 05 Jan 2010 17:28:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=196#comment-79467</guid>
		<description>Hi Cody,

Great tutorial. Thanks.

We&#039;ve added you to the codebix programmer&#039;s blog aggreagator. Do have a look and send us your feedback.

Regards</description>
		<content:encoded><![CDATA[<p>Hi Cody,</p>
<p>Great tutorial. Thanks.</p>
<p>We&#8217;ve added you to the codebix programmer&#8217;s blog aggreagator. Do have a look and send us your feedback.</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JeffM</title>
		<link>http://www.learningjquery.com/2008/12/peeling-away-the-jquery-wrapper/comment-page-1#comment-79147</link>
		<dc:creator>JeffM</dc:creator>
		<pubDate>Wed, 04 Nov 2009 17:13:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=196#comment-79147</guid>
		<description>@Cody: Thanks for this insight. You just spared me a considerable amount of experimentation - and time.
@Karl: LMAO at that last response, man.</description>
		<content:encoded><![CDATA[<p>@Cody: Thanks for this insight. You just spared me a considerable amount of experimentation &#8211; and time.<br />
@Karl: LMAO at that last response, man.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Swedberg</title>
		<link>http://www.learningjquery.com/2008/12/peeling-away-the-jquery-wrapper/comment-page-1#comment-78239</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Sat, 22 Aug 2009 00:22:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=196#comment-78239</guid>
		<description>Well, you don&#039;t have to be a jerk about it. 

Okay, I think it&#039;s fixed now.</description>
		<content:encoded><![CDATA[<p>Well, you don&#8217;t have to be a jerk about it. </p>
<p>Okay, I think it&#8217;s fixed now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brandonh</title>
		<link>http://www.learningjquery.com/2008/12/peeling-away-the-jquery-wrapper/comment-page-1#comment-78232</link>
		<dc:creator>brandonh</dc:creator>
		<pubDate>Fri, 21 Aug 2009 02:28:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=196#comment-78232</guid>
		<description>your code highlighter sucks balls. it&#039;s not trusting the html and converting line breaks to p&#039;s and different characters to their html codes. lame. i can&#039;t say much, because i don&#039;t have my own code highlighter and have to resort to using dpaste.com.</description>
		<content:encoded><![CDATA[<p>your code highlighter sucks balls. it&#8217;s not trusting the html and converting line breaks to p&#8217;s and different characters to their html codes. lame. i can&#8217;t say much, because i don&#8217;t have my own code highlighter and have to resort to using dpaste.com.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Swedberg</title>
		<link>http://www.learningjquery.com/2008/12/peeling-away-the-jquery-wrapper/comment-page-1#comment-69235</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Mon, 23 Feb 2009 21:40:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=196#comment-69235</guid>
		<description>heh. Yeah, I suppose you&#039;re right. I just changed it to Intermediate/Advanced. Thanks for the feedback.</description>
		<content:encoded><![CDATA[<p>heh. Yeah, I suppose you&#8217;re right. I just changed it to Intermediate/Advanced. Thanks for the feedback.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: beginner</title>
		<link>http://www.learningjquery.com/2008/12/peeling-away-the-jquery-wrapper/comment-page-1#comment-69160</link>
		<dc:creator>beginner</dc:creator>
		<pubDate>Mon, 23 Feb 2009 14:33:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=196#comment-69160</guid>
		<description>Why is this in the beginner&#039;s category? This is far too complicated for a beginner like me!

Thanks for taking the time to write it, but I&#039;m so foncused :$</description>
		<content:encoded><![CDATA[<p>Why is this in the beginner&#8217;s category? This is far too complicated for a beginner like me!</p>
<p>Thanks for taking the time to write it, but I&#8217;m so foncused :$</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kris</title>
		<link>http://www.learningjquery.com/2008/12/peeling-away-the-jquery-wrapper/comment-page-1#comment-63955</link>
		<dc:creator>kris</dc:creator>
		<pubDate>Sun, 18 Jan 2009 23:25:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=196#comment-63955</guid>
		<description>Wouldn&#039;t you know it - I worked on this for quite a while, and then an hour after posting my question above, i figured it out.  My problem was that if you checked on one of the regular checkboxes, and then checked the &quot;check all&quot; one, it would toggle the class to off.  Anyway, here it is (probably could be cleaned up, but like i said above, I&#039;m not very experienced with this stuff.  I just added this to the head section
&lt;pre&gt;&lt;code&gt;
$(document).ready(function()
      {
      $(&#039;#trcheckall&#039;).filter(&#039;:has(:checkbox:checked)&#039;).end().click(function(event)
          {

              //if user didn&#039;t click on the checkbox itself, check it
              if (event.target.type !== &#039;checkbox&#039;)
                   {
                   $(&#039;:checkbox&#039;, this).trigger(&#039;click&#039;);
                 }

              //if check all button is checked, add the class
              if($(&#039;#all&#039;).is(&#039;:checked&#039;))
              {
              $(&#039;:checkbox, tr&#039;).not(&#039;#trcheckall&#039;).attr(&#039;checked&#039;, $(&#039;#all&#039;).is(&#039;:checked&#039;)).addClass(&#039;selected&#039;);
              }
              //if it&#039;s been unchecked, remove the class
              else
              {
              $(&#039;:checkbox, tr&#039;).not(&#039;#trcheckall&#039;).attr(&#039;checked&#039;, $(&#039;#all&#039;).is(&#039;:checked&#039;)).removeClass(&#039;selected&#039;);
              }
          });
      });
&lt;/code&gt;&lt;/pre&gt;

and gave the row with the checkall box id = trcheckall and the input id = all.</description>
		<content:encoded><![CDATA[<p>Wouldn&#8217;t you know it &#8211; I worked on this for quite a while, and then an hour after posting my question above, i figured it out.  My problem was that if you checked on one of the regular checkboxes, and then checked the &#8220;check all&#8221; one, it would toggle the class to off.  Anyway, here it is (probably could be cleaned up, but like i said above, I&#8217;m not very experienced with this stuff.  I just added this to the head section</p>
<pre><code>
$(document).ready(function()
      {
      $('#trcheckall').filter(':has(:checkbox:checked)').end().click(function(event)
          {

              //if user didn't click on the checkbox itself, check it
              if (event.target.type !== 'checkbox')
                   {
                   $(':checkbox', this).trigger('click');
                 }

              //if check all button is checked, add the class
              if($('#all').is(':checked'))
              {
              $(':checkbox, tr').not('#trcheckall').attr('checked', $('#all').is(':checked')).addClass('selected');
              }
              //if it's been unchecked, remove the class
              else
              {
              $(':checkbox, tr').not('#trcheckall').attr('checked', $('#all').is(':checked')).removeClass('selected');
              }
          });
      });
</code></pre>
<p>and gave the row with the checkall box id = trcheckall and the input id = all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kris</title>
		<link>http://www.learningjquery.com/2008/12/peeling-away-the-jquery-wrapper/comment-page-1#comment-63954</link>
		<dc:creator>kris</dc:creator>
		<pubDate>Sun, 18 Jan 2009 22:55:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=196#comment-63954</guid>
		<description>Any idea on how to incorporate a &quot;toggle all&quot; feature into this?  I&#039;ve been trying to figure it out, but not very experienced with Javascript or Jquery.</description>
		<content:encoded><![CDATA[<p>Any idea on how to incorporate a &#8220;toggle all&#8221; feature into this?  I&#8217;ve been trying to figure it out, but not very experienced with Javascript or Jquery.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced (User agent is rejected)
Database Caching 3/28 queries in 0.006 seconds using disk: basic
Object Caching 369/393 objects using disk: basic
Content Delivery Network via learningjquery.kswedberg.netdna-cdn.com

Served from: www.learningjquery.com @ 2012-02-08 17:21:11 -->
