<?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-remove-css &#8211; Extreme Web Designs</title>
	<atom:link href="https://theextremewebdesigns.com/blog/tag/jquery-remove-css/feed/" rel="self" type="application/rss+xml" />
	<link>https://theextremewebdesigns.com/blog</link>
	<description>Web Design and Web Development</description>
	<lastBuildDate>Mon, 30 Jul 2012 15:39:22 +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 Remove CSS From Div Examples</title>
		<link>https://theextremewebdesigns.com/blog/jquery-remove-css-remove-css-from-div-using-jquery-example/</link>
					<comments>https://theextremewebdesigns.com/blog/jquery-remove-css-remove-css-from-div-using-jquery-example/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 30 Jul 2012 15:39:22 +0000</pubDate>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[jquery-demos]]></category>
		<category><![CDATA[jquery-remove-css]]></category>
		<category><![CDATA[jquery-tips]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=1095</guid>

					<description><![CDATA[If you have always wondered how to remove CSS using jQuery, then you have come to the right place. In this article, I am going share very easy way to remove CSS from DIV or any element using jQuery. Read on to find out more. Examples to Remove CSS from DIV using jQuery To demonstrate [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>If you have always wondered how to remove CSS using jQuery, then you have come to the right place. In this article, I am going share very easy way to <em><strong>remove CSS from DIV or any element using jQuery</strong></em>. Read on to find out more.<span id="more-1095"></span></p>
<h2>Examples to Remove CSS from DIV using jQuery</h2>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=1095" 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>To demonstrate on <strong>how to remove css from Div or any other element</strong> in a web page, here is an example. I have a div with ID &#8220;my_div&#8221; and it has three classes applied to it. The green class makes the text color green. Red class applies red background color to the div and the blue class applies blue border to the div. Now I want to remove the red class upon body load so that the background color does not turn to red.</p>
<h3>Example: Remove CSS from Div using jQuery on Page load using jQuery</h3>
<pre class="lang:xhtml decode:true crayon-selected">&lt;html&gt;
&lt;head&gt;
&lt;title&gt;jQuery Remove CSS from Div or any element&lt;/title&gt;
&lt;script type="text/javascript" src="js/jquery-1.8.2.min.js"&gt;&lt;/script&gt;
&lt;style type="text/css"&gt;
.green {
	color:#090;	
}
.red {
	background-color: #F00;
}
.blue {
	padding: 5px;
	border: 2px solid #09F;
}
&lt;/style&gt;
&lt;/head&gt;

&lt;body&gt;

&lt;div id="my_div" class="green red blue"&gt;This is my div with multiple css. We are removing "red" class on page load.&lt;/div&gt;

&lt;script type="text/javascript" language="javascript" &gt;
$(document).ready(function(){

	$("#my_div").removeClass('red');

});	
&lt;/script&gt;

&lt;/body&gt;
&lt;/html&gt;</pre>
<p>In the above, if you comment the jQuery code and view the page, you will notice that the green text color, red background &amp; blue border are applied, whereas when the code is uncommented, it removes the red background  color.</p>
<p>So that&#8217;s how you use <em><strong>jQuery to remove CSS from a Div</strong></em>. Simple, isn&#8217;t it?</p>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=1095" 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>Your Turn!</h5>
<p>Do you know of any other ways to <em><strong>remove CSS from a Div or any other element using jQuery</strong></em>? Feel free to suggest by commenting below.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/jquery-remove-css-remove-css-from-div-using-jquery-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1095</post-id>	</item>
	</channel>
</rss>
