<?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: Default Text Field Values That Disappear on&#160;Focus</title>
	<atom:link href="http://hocuspokus.net/2008/05/default-text-field-values-that-disappear-on-focus/feed" rel="self" type="application/rss+xml" />
	<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Fdefault-text-field-values-that-disappear-on-focus&amp;seed_title=Default+Text+Field+Values+That+Disappear+on%26%23160%3BFocus</link>
	<description>the life and times of a code monkey</description>
	<lastBuildDate>Thu, 11 Mar 2010 10:11:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tutorial_Review</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Fdefault-text-field-values-that-disappear-on-focus&amp;seed_title=Default+Text+Field+Values+That+Disappear+on%26%23160%3BFocus/comment-page-1#comment-1112</link>
		<dc:creator>Tutorial_Review</dc:creator>
		<pubDate>Sun, 28 Feb 2010 18:55:51 +0000</pubDate>
		<guid isPermaLink="false">http://hocuspokus.net/?p=146#comment-1112</guid>
		<description>&lt;p&gt;Been looking up how to do this for a while now, thanks for the article! A Great help!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Been looking up how to do this for a while now, thanks for the article! A Great help!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: hefox</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Fdefault-text-field-values-that-disappear-on-focus&amp;seed_title=Default+Text+Field+Values+That+Disappear+on%26%23160%3BFocus/comment-page-1#comment-1064</link>
		<dc:creator>hefox</dc:creator>
		<pubDate>Thu, 15 Oct 2009 16:05:55 +0000</pubDate>
		<guid isPermaLink="false">http://hocuspokus.net/?p=146#comment-1064</guid>
		<description>&lt;p&gt;Beware of Pre-assinging values for login boxes; overrides browsers remembered username/passwords.&lt;/p&gt;

&lt;p&gt;I countered this via not pre-assinging the value and doing this check
  $(&quot;input#edit-name.default-value[value]&quot;,context).removeClass(&quot;default-value&quot;);
  $(&quot;input#edit-pass.default-value[value]&quot;,context).removeClass(&quot;default-value&quot;);&lt;/p&gt;

&lt;p&gt;if it fails, ie browser hasn&#039;t given anything, then I want I add in the text
  $(&quot;input#edit-name.default-value&quot;,context).val(&#039;login&#039;);
  $(&quot;input#edit-pass.default-value&quot;,context).val(&#039;password&#039;);&lt;/p&gt;

&lt;p&gt;Passwords boxes will appear as ***** whatever the value is since they are password boxes.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Beware of Pre-assinging values for login boxes; overrides browsers remembered username/passwords.</p>

<p>I countered this via not pre-assinging the value and doing this check
  $(&#8220;input#edit-name.default-value[value]&#8221;,context).removeClass(&#8220;default-value&#8221;);
  $(&#8220;input#edit-pass.default-value[value]&#8221;,context).removeClass(&#8220;default-value&#8221;);</p>

<p>if it fails, ie browser hasn&#8217;t given anything, then I want I add in the text
  $(&#8220;input#edit-name.default-value&#8221;,context).val(&#8216;login&#8217;);
  $(&#8220;input#edit-pass.default-value&#8221;,context).val(&#8216;password&#8217;);</p>

<p>Passwords boxes will appear as ***** whatever the value is since they are password boxes.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: WEB DUDE</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Fdefault-text-field-values-that-disappear-on-focus&amp;seed_title=Default+Text+Field+Values+That+Disappear+on%26%23160%3BFocus/comment-page-1#comment-912</link>
		<dc:creator>WEB DUDE</dc:creator>
		<pubDate>Tue, 12 May 2009 22:06:26 +0000</pubDate>
		<guid isPermaLink="false">http://hocuspokus.net/?p=146#comment-912</guid>
		<description>&lt;p&gt;CD, ANDY, RYAN, DAZ,
Thanks for the useful info here!!!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>CD, ANDY, RYAN, DAZ,
Thanks for the useful info here!!!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Daz</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Fdefault-text-field-values-that-disappear-on-focus&amp;seed_title=Default+Text+Field+Values+That+Disappear+on%26%23160%3BFocus/comment-page-1#comment-867</link>
		<dc:creator>Daz</dc:creator>
		<pubDate>Sun, 22 Mar 2009 20:59:11 +0000</pubDate>
		<guid isPermaLink="false">http://hocuspokus.net/?p=146#comment-867</guid>
		<description>&lt;p&gt;Hi Dan,&lt;/p&gt;

&lt;p&gt;You need to have a value=&quot;The text you want to appear&quot; attribute to the input element.  I think that&#039;s what you&#039;re asking.&lt;/p&gt;

&lt;p&gt;Hi Kav,&lt;/p&gt;

&lt;p&gt;Any chance of some more info on that one?  What browser/version? What operating system?  And a slightly more in depth explaination of the bug might help me to figure out how to solve your troubles. ;)&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;Daz&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Dan,</p>

<p>You need to have a value=&#8221;The text you want to appear&#8221; attribute to the input element.  I think that&#8217;s what you&#8217;re asking.</p>

<p>Hi Kav,</p>

<p>Any chance of some more info on that one?  What browser/version? What operating system?  And a slightly more in depth explaination of the bug might help me to figure out how to solve your troubles. <img src='http://hocuspokus.net/wp-content/plugins/smilies-themer/tango/face-wink.png' alt=';)' class='wp-smiley' /> </p>

<p>Thanks,</p>

<p>Daz</p>]]></content:encoded>
	</item>
	<item>
		<title>By: kav</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Fdefault-text-field-values-that-disappear-on-focus&amp;seed_title=Default+Text+Field+Values+That+Disappear+on%26%23160%3BFocus/comment-page-1#comment-866</link>
		<dc:creator>kav</dc:creator>
		<pubDate>Sun, 22 Mar 2009 11:24:42 +0000</pubDate>
		<guid isPermaLink="false">http://hocuspokus.net/?p=146#comment-866</guid>
		<description>&lt;p&gt;After refresh/reload page the blur and color just wiped out.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>After refresh/reload page the blur and color just wiped out.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Fdefault-text-field-values-that-disappear-on-focus&amp;seed_title=Default+Text+Field+Values+That+Disappear+on%26%23160%3BFocus/comment-page-1#comment-862</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Mon, 16 Mar 2009 14:15:40 +0000</pubDate>
		<guid isPermaLink="false">http://hocuspokus.net/?p=146#comment-862</guid>
		<description>&lt;p&gt;what do  we input on the form side of thing&lt;/p&gt;

&lt;p&gt;class=&quot;default-value&quot; id=&quot;1&quot;&lt;/p&gt;

&lt;p&gt;is not working for me.&lt;/p&gt;

&lt;p&gt;Regards&lt;/p&gt;

&lt;p&gt;Dan&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>what do  we input on the form side of thing</p>

<p>class=&#8221;default-value&#8221; id=&#8221;1&#8221;</p>

<p>is not working for me.</p>

<p>Regards</p>

<p>Dan</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Dominic Claxton</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Fdefault-text-field-values-that-disappear-on-focus&amp;seed_title=Default+Text+Field+Values+That+Disappear+on%26%23160%3BFocus/comment-page-1#comment-483</link>
		<dc:creator>Dominic Claxton</dc:creator>
		<pubDate>Fri, 24 Oct 2008 14:23:53 +0000</pubDate>
		<guid isPermaLink="false">http://hocuspokus.net/?p=146#comment-483</guid>
		<description>&lt;p&gt;I changed it slightly to work even better (in my opinion!)
Remove the focus entirely from the links and instead trigger from the javascript.
This should allow you to make the default text disappear on focus but when the user types in and then refocuses on it again it doesn&#039;t disapperar but merely highlights. This gives the user the option of continuing to type by clicking again. For me it works better. 
Try it!&lt;/p&gt;

&lt;p&gt;Tested in FireFox 2 and IE7
Here it is in full.&lt;/p&gt;

&lt;p&gt;&lt;pre lang=&quot;javascript&quot;&gt;
var active_color = &#039;#000&#039;; // Colour of user provided text
var inactive_color = &#039;#999&#039;; // Colour of default text&lt;/p&gt;

&lt;p&gt;$(document).ready(function() {&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$(&quot;input.default-value&quot;).css(&quot;color&quot;, inactive_color);
var default_values = new Array();                      

$(&#039;input[type=&quot;text&quot;]&#039;).focus(function() {
    if (this.value == this.defaultValue){
    this.value = &#039;&#039;;
        this.style.color = active_color;
}
if(this.value != this.defaultValue){
    this.select(); 
    this.style.color = active_color;
}
});
$(&#039;input[type=&quot;text&quot;]&#039;).blur(function() {
    if (this.value == &#039;&#039;){
    this.value = (this.defaultValue ? this.defaultValue : &#039;&#039;);
    this.style.color = inactive_color;
}
});
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}
&lt;/pre&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I changed it slightly to work even better (in my opinion!)
Remove the focus entirely from the links and instead trigger from the javascript.
This should allow you to make the default text disappear on focus but when the user types in and then refocuses on it again it doesn&#8217;t disapperar but merely highlights. This gives the user the option of continuing to type by clicking again. For me it works better. 
Try it!</p>

<p>Tested in FireFox 2 and IE7
Here it is in full.</p>

<p>

</p>
<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> active_color <span style="color: #339933;">=</span> <span style="color: #3366CC;">'#000'</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// Colour of user provided text</span>
<span style="color: #003366; font-weight: bold;">var</span> inactive_color <span style="color: #339933;">=</span> <span style="color: #3366CC;">'#999'</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// Colour of default text&lt;/p&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>pre<span style="color: #339933;">&gt;&lt;</span>code<span style="color: #339933;">&gt;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;input.default-value&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;color&quot;</span><span style="color: #339933;">,</span> inactive_color<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> default_values <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Array<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>                      
&nbsp;
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'input[type=&quot;text&quot;]'</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">focus</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">value</span> <span style="color: #339933;">==</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">defaultValue</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">value</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">''</span><span style="color: #339933;">;</span>
        <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">style</span>.<span style="color: #660066;">color</span> <span style="color: #339933;">=</span> active_color<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">value</span> <span style="color: #339933;">!=</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">defaultValue</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">select</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
    <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">style</span>.<span style="color: #660066;">color</span> <span style="color: #339933;">=</span> active_color<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'input[type=&quot;text&quot;]'</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">blur</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">value</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">value</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">defaultValue</span> <span style="color: #339933;">?</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">defaultValue</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">style</span>.<span style="color: #660066;">color</span> <span style="color: #339933;">=</span> inactive_color<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>code<span style="color: #339933;">&gt;</span></pre></div></div>




<p>}
</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Tahir</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Fdefault-text-field-values-that-disappear-on-focus&amp;seed_title=Default+Text+Field+Values+That+Disappear+on%26%23160%3BFocus/comment-page-1#comment-479</link>
		<dc:creator>Tahir</dc:creator>
		<pubDate>Thu, 23 Oct 2008 06:43:15 +0000</pubDate>
		<guid isPermaLink="false">http://hocuspokus.net/?p=146#comment-479</guid>
		<description>&lt;p&gt;Great example Andy; I&#039;ve borrowed it for my site with one change.  Once a user entered their information into the text-field I didn&#039;t want the script to remove the users content when clicked again.  So here is the change:&lt;/p&gt;

&lt;p&gt;&lt;pre lang=&quot;javascript&quot;&gt;
$(document).ready(function(){
    $(&#039;input[type=&quot;text&quot;]&#039;).focus(function() {
        if (this.value == this.defaultValue) this.value = &#039;&#039;;
    });
    $(&#039;input[type=&quot;text&quot;]&#039;).blur(function() {
        if (this.value == &#039;&#039;) this.value = (this.defaultValue ? this.defaultValue : &#039;&#039;);
    });
});
&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;Thanks again for the example.  It was a huge helper for a jQuery Newbie who had no idea where to start!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Great example Andy; I&#8217;ve borrowed it for my site with one change.  Once a user entered their information into the text-field I didn&#8217;t want the script to remove the users content when clicked again.  So here is the change:</p>

<p>

</p>
<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'input[type=&quot;text&quot;]'</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">focus</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">value</span> <span style="color: #339933;">==</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">defaultValue</span><span style="color: #009900;">&#41;</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">value</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">''</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'input[type=&quot;text&quot;]'</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">blur</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">value</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">value</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">defaultValue</span> <span style="color: #339933;">?</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">defaultValue</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>




<p>Thanks again for the example.  It was a huge helper for a jQuery Newbie who had no idea where to start!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Vignesh Sugumar</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Fdefault-text-field-values-that-disappear-on-focus&amp;seed_title=Default+Text+Field+Values+That+Disappear+on%26%23160%3BFocus/comment-page-1#comment-476</link>
		<dc:creator>Vignesh Sugumar</dc:creator>
		<pubDate>Tue, 21 Oct 2008 17:50:37 +0000</pubDate>
		<guid isPermaLink="false">http://hocuspokus.net/?p=146#comment-476</guid>
		<description>&lt;p&gt;Here is another working solution!&lt;/p&gt;

&lt;p&gt;Asp Textbox&lt;/p&gt;

&lt;p&gt;For simple html&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Here is another working solution!</p>

<p>Asp Textbox</p>

<p>For simple html</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Fdefault-text-field-values-that-disappear-on-focus&amp;seed_title=Default+Text+Field+Values+That+Disappear+on%26%23160%3BFocus/comment-page-1#comment-426</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Tue, 26 Aug 2008 00:29:55 +0000</pubDate>
		<guid isPermaLink="false">http://hocuspokus.net/?p=146#comment-426</guid>
		<description>&lt;p&gt;Great example Andy; I&#039;ve borrowed it for my site with one change.  Once a user entered their information into the text-field I didn&#039;t want the script to remove the users content when clicked again.  So here is the change:&lt;/p&gt;

&lt;p&gt;&lt;pre lang=&quot;javascript&quot;&gt;
$(document).ready(function(){
    $(&#039;input[type=&quot;text&quot;]&#039;).focus(function() {
        if (this.value == this.defaultValue) this.value = &#039;&#039;;
    });
    $(&#039;input[type=&quot;text&quot;]&#039;).blur(function() {
        if (this.value == &#039;&#039;) this.value = (this.defaultValue ? this.defaultValue : &#039;&#039;);
    });
});
&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;Thanks again for the example.  It was a huge helper for a jQuery Newbie who had no idea where to start!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Great example Andy; I&#8217;ve borrowed it for my site with one change.  Once a user entered their information into the text-field I didn&#8217;t want the script to remove the users content when clicked again.  So here is the change:</p>

<p>

</p>
<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'input[type=&quot;text&quot;]'</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">focus</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">value</span> <span style="color: #339933;">==</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">defaultValue</span><span style="color: #009900;">&#41;</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">value</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">''</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'input[type=&quot;text&quot;]'</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">blur</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">value</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">value</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">defaultValue</span> <span style="color: #339933;">?</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">defaultValue</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>




<p>Thanks again for the example.  It was a huge helper for a jQuery Newbie who had no idea where to start!</p>]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->