<?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>Pablo Noel &#187; forms</title>
	<atom:link href="http://pablonoel.com/tags/forms/feed/" rel="self" type="application/rss+xml" />
	<link>http://pablonoel.com</link>
	<description>Designer, Skater, Punk</description>
	<lastBuildDate>Mon, 30 Jan 2012 04:15:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Clean inputs on focus</title>
		<link>http://pablonoel.com/code/clean-inputs-on-focus/</link>
		<comments>http://pablonoel.com/code/clean-inputs-on-focus/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 20:58:21 +0000</pubDate>
		<dc:creator>Pablo Noel</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://pablonoel.com/?p=78</guid>
		<description><![CDATA[A fast and nice way using Jquery to clean input values on focus, and put the default value back when is empty: $(".clean").each(function(){ var value = $(this).val(); $(this).focusin(function(){if($(this).val() == value){$(this).val("");};}); $(this).focusout(function(){if($(this).val() == ''){$(this).val(value);};}); }); Just add the class &#8220;.clean&#8221; to your input tag and voilá.]]></description>
			<content:encoded><![CDATA[<p>A fast and nice way using Jquery to clean input values on focus, and put the default value back when is empty:</p>
<p><code>$(".clean").each(function(){<br />
var value = $(this).val();<br />
$(this).focusin(function(){if($(this).val() == value){$(this).val("");};});<br />
$(this).focusout(function(){if($(this).val() == ''){$(this).val(value);};});<br />
});</code></p>
<p>Just add the class &#8220;.clean&#8221; to your input tag and voilá.</p>
]]></content:encoded>
			<wfw:commentRss>http://pablonoel.com/code/clean-inputs-on-focus/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

