<?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/"
		>
<channel>
	<title>Comments on: Unobtrusive &#8220;clear searchfield on focus&#8221;</title>
	<atom:link href="http://bassistance.de/2007/01/23/unobtrusive-clear-searchfield-on-focus/feed/" rel="self" type="application/rss+xml" />
	<link>http://bassistance.de/2007/01/23/unobtrusive-clear-searchfield-on-focus/</link>
	<description>Jörn Zaefferer on Bass, Geeks and Rock'n'Roll</description>
	<lastBuildDate>Fri, 23 Jul 2010 15:57:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: LearnWebCode</title>
		<link>http://bassistance.de/2007/01/23/unobtrusive-clear-searchfield-on-focus/comment-page-1/#comment-181433</link>
		<dc:creator>LearnWebCode</dc:creator>
		<pubDate>Sun, 31 Jan 2010 00:09:15 +0000</pubDate>
		<guid isPermaLink="false">http://bassistance.de/2007/01/23/unobtrusive-clear-searchfield-on-focus/#comment-181433</guid>
		<description>Thanks for posting this!  I&#039;m a jQuery beginner and this was exactly what I needed :).</description>
		<content:encoded><![CDATA[<p>Thanks for posting this!  I&#8217;m a jQuery beginner and this was exactly what I needed <img src='http://bassistance.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ravi</title>
		<link>http://bassistance.de/2007/01/23/unobtrusive-clear-searchfield-on-focus/comment-page-1/#comment-180622</link>
		<dc:creator>ravi</dc:creator>
		<pubDate>Wed, 20 Jan 2010 12:03:13 +0000</pubDate>
		<guid isPermaLink="false">http://bassistance.de/2007/01/23/unobtrusive-clear-searchfield-on-focus/#comment-180622</guid>
		<description>thanks a lot i tried it. works perfectly :D</description>
		<content:encoded><![CDATA[<p>thanks a lot i tried it. works perfectly <img src='http://bassistance.de/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: midday</title>
		<link>http://bassistance.de/2007/01/23/unobtrusive-clear-searchfield-on-focus/comment-page-1/#comment-171958</link>
		<dc:creator>midday</dc:creator>
		<pubDate>Thu, 03 Sep 2009 10:15:07 +0000</pubDate>
		<guid isPermaLink="false">http://bassistance.de/2007/01/23/unobtrusive-clear-searchfield-on-focus/#comment-171958</guid>
		<description>&gt;&gt;works_as_espected?
=&gt;true

thanks :)</description>
		<content:encoded><![CDATA[<p>&gt;&gt;works_as_espected?<br />
=&gt;true</p>
<p>thanks <img src='http://bassistance.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ana</title>
		<link>http://bassistance.de/2007/01/23/unobtrusive-clear-searchfield-on-focus/comment-page-1/#comment-169293</link>
		<dc:creator>ana</dc:creator>
		<pubDate>Sun, 12 Jul 2009 19:21:49 +0000</pubDate>
		<guid isPermaLink="false">http://bassistance.de/2007/01/23/unobtrusive-clear-searchfield-on-focus/#comment-169293</guid>
		<description>Great script! Very useful for a jquery dummy :)</description>
		<content:encoded><![CDATA[<p>Great script! Very useful for a jquery dummy <img src='http://bassistance.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dagomar</title>
		<link>http://bassistance.de/2007/01/23/unobtrusive-clear-searchfield-on-focus/comment-page-1/#comment-169088</link>
		<dc:creator>Dagomar</dc:creator>
		<pubDate>Thu, 09 Jul 2009 16:29:56 +0000</pubDate>
		<guid isPermaLink="false">http://bassistance.de/2007/01/23/unobtrusive-clear-searchfield-on-focus/#comment-169088</guid>
		<description>That is a lifesaver! Took me about 5 minutes to implement this on a Drupal site! Thanks!</description>
		<content:encoded><![CDATA[<p>That is a lifesaver! Took me about 5 minutes to implement this on a Drupal site! Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: emptywalls</title>
		<link>http://bassistance.de/2007/01/23/unobtrusive-clear-searchfield-on-focus/comment-page-1/#comment-168745</link>
		<dc:creator>emptywalls</dc:creator>
		<pubDate>Tue, 30 Jun 2009 19:51:25 +0000</pubDate>
		<guid isPermaLink="false">http://bassistance.de/2007/01/23/unobtrusive-clear-searchfield-on-focus/#comment-168745</guid>
		<description>Thanks very much for this. I am doing the javascript replacement with jquery on the new company site, and this is exactly what I needed.</description>
		<content:encoded><![CDATA[<p>Thanks very much for this. I am doing the javascript replacement with jquery on the new company site, and this is exactly what I needed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://bassistance.de/2007/01/23/unobtrusive-clear-searchfield-on-focus/comment-page-1/#comment-153293</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Fri, 30 Jan 2009 20:47:02 +0000</pubDate>
		<guid isPermaLink="false">http://bassistance.de/2007/01/23/unobtrusive-clear-searchfield-on-focus/#comment-153293</guid>
		<description>Nevermind, I figured it out.

        $(&quot;#s&quot;).focus(function() {
		if( this.value == this.defaultValue ) {
			this.value = &quot;$&quot;;
		}
	}).blur(function() {
		if( !this.value.length &#124;&#124; this.value == &quot;$&quot; ) {
			this.value = this.defaultValue;
		}
	});</description>
		<content:encoded><![CDATA[<p>Nevermind, I figured it out.</p>
<p>        $(&#8220;#s&#8221;).focus(function() {<br />
		if( this.value == this.defaultValue ) {<br />
			this.value = &#8220;$&#8221;;<br />
		}<br />
	}).blur(function() {<br />
		if( !this.value.length || this.value == &#8220;$&#8221; ) {<br />
			this.value = this.defaultValue;<br />
		}<br />
	});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://bassistance.de/2007/01/23/unobtrusive-clear-searchfield-on-focus/comment-page-1/#comment-153291</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Fri, 30 Jan 2009 20:43:25 +0000</pubDate>
		<guid isPermaLink="false">http://bassistance.de/2007/01/23/unobtrusive-clear-searchfield-on-focus/#comment-153291</guid>
		<description>Quick question.
I wanted to use something like this for someone to enter a donation or a price for a product, etc.

How would I go about having it so when the user clicks on it the default value disappears and leaves only a dollar symbol?

If I do this.value = &quot;$&quot;; then the .blue() function doesn&#039;t kick in because obviously it does now have a value.

How would I word the .blur() if statement so that if it&#039;s empty or if it only has a dollar symbol it will go back to default?</description>
		<content:encoded><![CDATA[<p>Quick question.<br />
I wanted to use something like this for someone to enter a donation or a price for a product, etc.</p>
<p>How would I go about having it so when the user clicks on it the default value disappears and leaves only a dollar symbol?</p>
<p>If I do this.value = &#8220;$&#8221;; then the .blue() function doesn&#8217;t kick in because obviously it does now have a value.</p>
<p>How would I word the .blur() if statement so that if it&#8217;s empty or if it only has a dollar symbol it will go back to default?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://bassistance.de/2007/01/23/unobtrusive-clear-searchfield-on-focus/comment-page-1/#comment-152098</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 13 Jan 2009 08:20:42 +0000</pubDate>
		<guid isPermaLink="false">http://bassistance.de/2007/01/23/unobtrusive-clear-searchfield-on-focus/#comment-152098</guid>
		<description>Very Nice utility snippet. Though the needs are slightly different but this can be used.
Raj</description>
		<content:encoded><![CDATA[<p>Very Nice utility snippet. Though the needs are slightly different but this can be used.<br />
Raj</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jörn</title>
		<link>http://bassistance.de/2007/01/23/unobtrusive-clear-searchfield-on-focus/comment-page-1/#comment-151375</link>
		<dc:creator>Jörn</dc:creator>
		<pubDate>Sat, 03 Jan 2009 12:54:36 +0000</pubDate>
		<guid isPermaLink="false">http://bassistance.de/2007/01/23/unobtrusive-clear-searchfield-on-focus/#comment-151375</guid>
		<description>@Connor: The last line in the example shows the usage. Put the function into some library file, and use it elsewhere as you need it.</description>
		<content:encoded><![CDATA[<p>@Connor: The last line in the example shows the usage. Put the function into some library file, and use it elsewhere as you need it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
