<?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/"
	xmlns:series="http://unfoldingneurons.com/"
		>
<channel>
	<title>Comments on: Adding a class to an element using javascript</title>
	<atom:link href="http://www.digimantra.com/technology/adding-a-class-to-an-element-using-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.digimantra.com/technology/adding-a-class-to-an-element-using-javascript/</link>
	<description>Technology tips for all</description>
	<lastBuildDate>Sun, 13 Nov 2011 09:56:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Alex</title>
		<link>http://www.digimantra.com/technology/adding-a-class-to-an-element-using-javascript/#comment-29223</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Wed, 14 Jul 2010 14:00:51 +0000</pubDate>
		<guid isPermaLink="false">http://realin.co.in/?p=141#comment-29223</guid>
		<description>You can add a class to an element already with one. Instead of using a &quot;=&quot; use &quot;+=&quot; to append the class.</description>
		<content:encoded><![CDATA[<p>You can add a class to an element already with one. Instead of using a &#8220;=&#8221; use &#8220;+=&#8221; to append the class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wayne</title>
		<link>http://www.digimantra.com/technology/adding-a-class-to-an-element-using-javascript/#comment-3603</link>
		<dc:creator>wayne</dc:creator>
		<pubDate>Sun, 02 Aug 2009 13:17:50 +0000</pubDate>
		<guid isPermaLink="false">http://realin.co.in/?p=141#comment-3603</guid>
		<description>i think a better name for this function would be &quot;overwriteClass&quot; as the function performs no check to to see if the target object already has a class name.

in the given example, it&#039;s obvious that the div object has no other class name, but if this function is going to be used in other pages where there might already be a class attached to the object you want to hilight, be aware that the function will overwrite any existing class, possibly creating unwanted side effects.</description>
		<content:encoded><![CDATA[<p>i think a better name for this function would be &#8220;overwriteClass&#8221; as the function performs no check to to see if the target object already has a class name.</p>
<p>in the given example, it&#8217;s obvious that the div object has no other class name, but if this function is going to be used in other pages where there might already be a class attached to the object you want to hilight, be aware that the function will overwrite any existing class, possibly creating unwanted side effects.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

