<?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>Thu, 10 May 2012 07:52:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Remove value from input with jQuery</title>
		<link>http://klevismiho.com/remove-value-from-input-with-jquery/</link>
		<comments>http://klevismiho.com/remove-value-from-input-with-jquery/#comments</comments>
		<pubDate>Sun, 19 Feb 2012 19:53:09 +0000</pubDate>
		<dc:creator>klevisi</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://klevismiho.com/?p=269</guid>
		<description><![CDATA[This jQuery code removes the value of a input text type when the user clicks on the input. $(document).ready(function(){ $(function(){ $(&#039;input:text&#039;).each(function(){ var inputValue = $(this).val(); $(this).focus(function(){ $(this).val(&#039;&#039;) }); $(this).blur(function(){ if($(this).val() == &#34;&#34;){ $(this).val(inputValue); } }); }); }); });]]></description>
			<content:encoded><![CDATA[<p>This jQuery code removes the value of a input text type when the user clicks on the input.</p>
<pre class="brush: javascript">

$(document).ready(function(){
$(function(){
$(&#039;input:text&#039;).each(function(){
var inputValue = $(this).val();
$(this).focus(function(){
$(this).val(&#039;&#039;)
});
$(this).blur(function(){
if($(this).val() == &quot;&quot;){
$(this).val(inputValue);
}
});
});
});
});
</pre>
]]></content:encoded>
			<wfw:commentRss>http://klevismiho.com/remove-value-from-input-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>

