<?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>klevismiho.com &#187; JavaScript</title>
	<atom:link href="http://klevismiho.com/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://klevismiho.com</link>
	<description>Blog of an Albanian Web Developer</description>
	<lastBuildDate>Tue, 06 Dec 2011 15:41:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>getElementsByClassName function</title>
		<link>http://klevismiho.com/getelementsbyclassname-function/</link>
		<comments>http://klevismiho.com/getelementsbyclassname-function/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 08:21:51 +0000</pubDate>
		<dc:creator>klevisi</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://klevismiho.com/en/?p=31</guid>
		<description><![CDATA[Since there doesn&#8217;t exist something like a getElementByClassName function, I just tried the js prototype library which has a getElementsByClassName function. You can download it here. Include it in the head like this: &#60;head&#62; &#60;script type=&#34;text/javascript&#34; src=&#34;prototype.js&#34;&#62;&#60;/script&#62; &#60;/head&#62; Then use it like this: var test = document.getElementsByClassName(&#34;test&#34;); the variable test will be an array.]]></description>
			<content:encoded><![CDATA[<p>Since there doesn&#8217;t exist something like a getElementByClassName function, I just tried the js prototype library which has a getElementsByClassName function. You can download it <a href="http://prototypejs.org" target="_blank">here</a>.</p>
<p><strong>Include it in the head like this:</strong></p>
<pre class="brush: html">
&lt;head&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;prototype.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
</pre>
<p><strong>Then use it like this:</strong></p>
<pre class="brush: javascript">
var test = document.getElementsByClassName(&quot;test&quot;);
</pre>
<p>the variable test will be an array.</p>
<p><script src="prototype.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://klevismiho.com/getelementsbyclassname-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

