<?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: .hasClass()</title>
	<atom:link href="http://api.jquery.com/hasClass/feed/" rel="self" type="application/rss+xml" />
	<link>http://api.jquery.com/hasClass/</link>
	<description>jQuery API Reference</description>
	<lastBuildDate>Fri, 19 Aug 2011 09:06:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Dasiepi</title>
		<link>http://api.jquery.com/hasClass/comment-page-1/#comment-8694</link>
		<dc:creator>Dasiepi</dc:creator>
		<pubDate>Sat, 29 Jan 2011 21:47:29 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=91#comment-8694</guid>
		<description>if i add a class dinamically (say &quot;active&quot; ) with addClass and then check with hasClass it returns false.</description>
		<content:encoded><![CDATA[<p>if i add a class dinamically (say &#8220;active&#8221; ) with addClass and then check with hasClass it returns false.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bronza</title>
		<link>http://api.jquery.com/hasClass/comment-page-1/#comment-8326</link>
		<dc:creator>Bronza</dc:creator>
		<pubDate>Thu, 13 Jan 2011 18:54:50 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=91#comment-8326</guid>
		<description>what&#039;s the method to get the className of an element!?</description>
		<content:encoded><![CDATA[<p>what&#39;s the method to get the className of an element!?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LucMorizur</title>
		<link>http://api.jquery.com/hasClass/comment-page-1/#comment-8036</link>
		<dc:creator>LucMorizur</dc:creator>
		<pubDate>Thu, 09 Dec 2010 05:12:05 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=91#comment-8036</guid>
		<description>Hi ;&lt;br&gt;&lt;br&gt;I think that what Karl was saying, is that if you need to test if element &lt;elem&gt; has classes &#039;foo&#039; or &#039;bar&#039; or both these classes, you should write:&lt;br&gt;if ($(this).is(&#039;.foo, .bar&#039;))&lt;/elem&gt;</description>
		<content:encoded><![CDATA[<p>Hi ;</p>
<p>I think that what Karl was saying, is that if you need to test if element &lt;elem&gt; has classes &#39;foo&#39; or &#39;bar&#39; or both these classes, you should write:<br />if ($(this).is(&#39;.foo, .bar&#39;))&lt;/elem&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LucMorizur</title>
		<link>http://api.jquery.com/hasClass/comment-page-1/#comment-7445</link>
		<dc:creator>LucMorizur</dc:creator>
		<pubDate>Wed, 08 Dec 2010 21:12:05 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=91#comment-7445</guid>
		<description>Hi ;&lt;br&gt;&lt;br&gt;I think that what Karl was saying, is that if you need to test if element &lt;elem&gt; has classes &#039;foo&#039; or &#039;bar&#039; or both these classes, you should write:&lt;br&gt;if ($(this).is(&#039;.foo, .bar&#039;))&lt;/elem&gt;</description>
		<content:encoded><![CDATA[<p>Hi ;</p>
<p>I think that what Karl was saying, is that if you need to test if element &lt;elem&gt; has classes &#39;foo&#39; or &#39;bar&#39; or both these classes, you should write:<br />if ($(this).is(&#39;.foo, .bar&#39;))&lt;/elem&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Swedberg</title>
		<link>http://api.jquery.com/hasClass/comment-page-1/#comment-7174</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Tue, 23 Nov 2010 16:35:37 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=91#comment-7174</guid>
		<description>separate the classes with a comma:&lt;br&gt;$(this).is(&#039;.foo, .bar&#039;)</description>
		<content:encoded><![CDATA[<p>separate the classes with a comma:<br />$(this).is(&#39;.foo, .bar&#39;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Dichiara</title>
		<link>http://api.jquery.com/hasClass/comment-page-1/#comment-7103</link>
		<dc:creator>Brian Dichiara</dc:creator>
		<pubDate>Fri, 19 Nov 2010 15:06:26 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=91#comment-7103</guid>
		<description>What about if I wanted to check if it had ANY of the classes? .this OR .that Something built in for this?</description>
		<content:encoded><![CDATA[<p>What about if I wanted to check if it had ANY of the classes? .this OR .that Something built in for this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pradeepa Kundapur</title>
		<link>http://api.jquery.com/hasClass/comment-page-1/#comment-6865</link>
		<dc:creator>Pradeepa Kundapur</dc:creator>
		<pubDate>Mon, 08 Nov 2010 09:49:56 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=91#comment-6865</guid>
		<description>yeah Mikro ur r8</description>
		<content:encoded><![CDATA[<p>yeah Mikro ur r8</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mirko</title>
		<link>http://api.jquery.com/hasClass/comment-page-1/#comment-4638</link>
		<dc:creator>Mirko</dc:creator>
		<pubDate>Tue, 03 Aug 2010 18:21:03 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=91#comment-4638</guid>
		<description>if(!$(&#039;tr&#039;).hasClass(&quot;termid-24&quot;)){&lt;br&gt;}</description>
		<content:encoded><![CDATA[<p>if(!$(&#39;tr&#39;).hasClass(&#8220;termid-24&#8243;)){<br />}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mitchell</title>
		<link>http://api.jquery.com/hasClass/comment-page-1/#comment-4509</link>
		<dc:creator>Mitchell</dc:creator>
		<pubDate>Thu, 29 Jul 2010 03:18:08 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=91#comment-4509</guid>
		<description>That will only match the first in a list of space-separated classes. It will give a false negative for INPUT CLASS=&quot;foo req-if-checked-bar&quot;</description>
		<content:encoded><![CDATA[<p>That will only match the first in a list of space-separated classes. It will give a false negative for INPUT CLASS=&#8221;foo req-if-checked-bar&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Swedberg</title>
		<link>http://api.jquery.com/hasClass/comment-page-1/#comment-10333</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Thu, 25 Mar 2010 02:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=91#comment-10333</guid>
		<description>Rather than use .hasClass() for that, I&#039;d recommend using &lt;a href=&quot;http://api.jquery.com/&quot; rel=&quot;nofollow&quot;&gt;.is()&lt;/a&gt;. $(this).is(&#039;.foo.bar&#039;) would give the same result as $(this).is(&#039;.bar.foo&#039;)</description>
		<content:encoded><![CDATA[<p>Rather than use .hasClass() for that, I&#8217;d recommend using <a href="http://api.jquery.com/" rel="nofollow">.is()</a>. $(this).is(&#8216;.foo.bar&#8217;) would give the same result as $(this).is(&#8216;.bar.foo&#8217;)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

