<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>jquery-get-class &#8211; Extreme Web Designs</title>
	<atom:link href="https://theextremewebdesigns.com/blog/tag/jquery-get-class/feed/" rel="self" type="application/rss+xml" />
	<link>https://theextremewebdesigns.com/blog</link>
	<description>Web Design and Web Development</description>
	<lastBuildDate>Wed, 20 Jun 2012 04:51:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.5</generator>
<site xmlns="com-wordpress:feed-additions:1">156673191</site>	<item>
		<title>jQuery Get Class Examples</title>
		<link>https://theextremewebdesigns.com/blog/jquery-get-class-get-all-class-applied-element-using-jquery/</link>
					<comments>https://theextremewebdesigns.com/blog/jquery-get-class-get-all-class-applied-element-using-jquery/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 20 Jun 2012 04:51:16 +0000</pubDate>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[jquery-class]]></category>
		<category><![CDATA[jquery-demos]]></category>
		<category><![CDATA[jquery-get-class]]></category>
		<category><![CDATA[jquery-tips]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=948</guid>

					<description><![CDATA[Have you wanted to get class of an element or list of all class applied to an element using jQuery? In this article, I am going to share an easy way to do just that. Actual code is just 1 line, so it&#8217;s super easy to follow along. Examples on using jQuery to Get Class [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Have you wanted to <em><strong>get class of an element or list of all class applied to an element using jQuery</strong></em>? In this article, I am going to share an easy way to do just that. Actual code is just 1 line, so it&#8217;s super easy to follow along.<span id="more-948"></span></p>
<h2>Examples on using jQuery to Get Class</h2>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=948" method="post" name="form1" target="_blank" id="form1">


	<input type="hidden" name="shortcode_content" id="shortcode_content" value="" />

        <div class="try_demo_btn_container">


            <button type="submit" name="sbt_make_demo" id="sbt_make_demo" class="btn-primary btn-try-demo">
                Try Demo
            </button>


        </div><!-- .try_demo_btn_container -->

    </form>
    </div>
    
<p>The following example assumes that there is a div with ID &#8220;my_div&#8221; and a list of all class applied to this div should be alerted, when &#8220;Get class&#8221; button is clicked.</p>
<h3>Example: Using jQuery to get div class</h3>
<pre class="lang:xhtml decode:true crayon-selected">&lt;html&gt;
&lt;head&gt;
&lt;title&gt;jQuery Get Class | Get All Class applied to an element using jQuery&lt;/title&gt;
&lt;script type="text/javascript" src="js/jquery-1.8.2.min.js"&gt;&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;

&lt;div id="my_div" class="Lorem ipsum dolor_spec sit amet"&gt;Hello World!&lt;/div&gt;

&lt;input type="submit" name="get" id="get" value="Get Class" /&gt;

&lt;script type="text/javascript"&gt;

$('#get').click(function() {

	alert( $("#my_div").attr("class") );

});

&lt;/script&gt; 
&lt;/body&gt;
&lt;/html&gt;</pre>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=948" method="post" name="form1" target="_blank" id="form1">


	<input type="hidden" name="shortcode_content" id="shortcode_content" value="" />

        <div class="try_demo_btn_container">


            <button type="submit" name="sbt_make_demo" id="sbt_make_demo" class="btn-primary btn-try-demo">
                Try Demo
            </button>


        </div><!-- .try_demo_btn_container -->

    </form>
    </div>
    
<h5>Simple, isn&#8217;t it?</h5>
<p>Do you know of any other ways to <em><strong>get class  or get all class list applied to an element using jQuery</strong></em>? Feel free to suggest by commenting below.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/jquery-get-class-get-all-class-applied-element-using-jquery/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">948</post-id>	</item>
	</channel>
</rss>
