<?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: jQuery Plugin &#8211; Form Field Default Value</title>
	<atom:link href="http://www.jason-palmer.com/2008/08/jquery-plugin-form-field-default-value/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jason-palmer.com/2008/08/jquery-plugin-form-field-default-value/</link>
	<description></description>
	<lastBuildDate>Fri, 25 Jun 2010 20:22:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: christian</title>
		<link>http://www.jason-palmer.com/2008/08/jquery-plugin-form-field-default-value/comment-page-1/#comment-399</link>
		<dc:creator>christian</dc:creator>
		<pubDate>Thu, 24 Jun 2010 15:52:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.jason-palmer.com/?p=7#comment-399</guid>
		<description>Thanks Jason, appreciate it!</description>
		<content:encoded><![CDATA[<p>Thanks Jason, appreciate it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.jason-palmer.com/2008/08/jquery-plugin-form-field-default-value/comment-page-1/#comment-395</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Wed, 23 Jun 2010 17:25:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.jason-palmer.com/?p=7#comment-395</guid>
		<description>Of course - free as in beer :)

Enjoy.</description>
		<content:encoded><![CDATA[<p>Of course &#8211; free as in beer <img src='http://www.jason-palmer.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Enjoy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: christian</title>
		<link>http://www.jason-palmer.com/2008/08/jquery-plugin-form-field-default-value/comment-page-1/#comment-391</link>
		<dc:creator>christian</dc:creator>
		<pubDate>Mon, 21 Jun 2010 10:59:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.jason-palmer.com/?p=7#comment-391</guid>
		<description>Hi Jason, 

ive been searching for something like this, and as such wanted to ask permission to use this as a base for our contact forms we develop for our templates and sell on themeforest, woudl greatly appreaciate a response. 

Thanks

Christian</description>
		<content:encoded><![CDATA[<p>Hi Jason, </p>
<p>ive been searching for something like this, and as such wanted to ask permission to use this as a base for our contact forms we develop for our templates and sell on themeforest, woudl greatly appreaciate a response. </p>
<p>Thanks</p>
<p>Christian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jiri</title>
		<link>http://www.jason-palmer.com/2008/08/jquery-plugin-form-field-default-value/comment-page-1/#comment-387</link>
		<dc:creator>Jiri</dc:creator>
		<pubDate>Sat, 05 Jun 2010 21:35:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.jason-palmer.com/?p=7#comment-387</guid>
		<description>Thanks for your simple but usefull plugin!</description>
		<content:encoded><![CDATA[<p>Thanks for your simple but usefull plugin!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tina</title>
		<link>http://www.jason-palmer.com/2008/08/jquery-plugin-form-field-default-value/comment-page-1/#comment-385</link>
		<dc:creator>tina</dc:creator>
		<pubDate>Mon, 10 May 2010 17:23:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.jason-palmer.com/?p=7#comment-385</guid>
		<description>i want to make function in which argument will be pass jQuery object which is id of form.and return value of function should be map of name-value pair of each elaement in form.how can i do that?&gt;</description>
		<content:encoded><![CDATA[<p>i want to make function in which argument will be pass jQuery object which is id of form.and return value of function should be map of name-value pair of each elaement in form.how can i do that?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander Shlygin</title>
		<link>http://www.jason-palmer.com/2008/08/jquery-plugin-form-field-default-value/comment-page-1/#comment-373</link>
		<dc:creator>Alexander Shlygin</dc:creator>
		<pubDate>Sun, 18 Apr 2010 23:14:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.jason-palmer.com/?p=7#comment-373</guid>
		<description>Hi, Jason!

Thank you for your reply! I do not really see such a problem in this case: you can leave default value hardcoded in html, so users will see this value neither they have enabled javascript or not. And this default value will be processed the same way/

On the other hand, it is rather hard to find a user without javascript enabled nowadays.

Or may be I did not understand your point.

P.S.: Sorry for making you think, that your solution is not backward compilant for me. I meant that my is doing well too!</description>
		<content:encoded><![CDATA[<p>Hi, Jason!</p>
<p>Thank you for your reply! I do not really see such a problem in this case: you can leave default value hardcoded in html, so users will see this value neither they have enabled javascript or not. And this default value will be processed the same way/</p>
<p>On the other hand, it is rather hard to find a user without javascript enabled nowadays.</p>
<p>Or may be I did not understand your point.</p>
<p>P.S.: Sorry for making you think, that your solution is not backward compilant for me. I meant that my is doing well too!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.jason-palmer.com/2008/08/jquery-plugin-form-field-default-value/comment-page-1/#comment-370</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Sun, 18 Apr 2010 04:17:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.jason-palmer.com/?p=7#comment-370</guid>
		<description>Hi Alexander,

Great &amp; valid points!  However, contrary to your statement, my current solution provides &quot;backward compatibility just as yours does.  Let&#039;s assume a user does not have JavaScript enabled.  Both yours and my solution will result in that user not seeing anything in the input box.

I agree your solution is a bit more compliant with HTML standards, however it doesn&#039;t provide a &quot;backup&quot; for users without JavaScript.  Seems HTML5 offers some functionality related to this.</description>
		<content:encoded><![CDATA[<p>Hi Alexander,</p>
<p>Great &#038; valid points!  However, contrary to your statement, my current solution provides &#8220;backward compatibility just as yours does.  Let&#8217;s assume a user does not have JavaScript enabled.  Both yours and my solution will result in that user not seeing anything in the input box.</p>
<p>I agree your solution is a bit more compliant with HTML standards, however it doesn&#8217;t provide a &#8220;backup&#8221; for users without JavaScript.  Seems HTML5 offers some functionality related to this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander Shlygin</title>
		<link>http://www.jason-palmer.com/2008/08/jquery-plugin-form-field-default-value/comment-page-1/#comment-364</link>
		<dc:creator>Alexander Shlygin</dc:creator>
		<pubDate>Fri, 16 Apr 2010 14:09:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.jason-palmer.com/?p=7#comment-364</guid>
		<description>Otherwise, you can user &quot;title&quot; attribute to store default value for the field, so you can save your data validation after page is resfreshed.

In this case, you do not need .each assignment anymore, just comparing value and title on focus and blur event!

Less code, do more!</description>
		<content:encoded><![CDATA[<p>Otherwise, you can user &#8220;title&#8221; attribute to store default value for the field, so you can save your data validation after page is resfreshed.</p>
<p>In this case, you do not need .each assignment anymore, just comparing value and title on focus and blur event!</p>
<p>Less code, do more!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander Shlygin</title>
		<link>http://www.jason-palmer.com/2008/08/jquery-plugin-form-field-default-value/comment-page-1/#comment-363</link>
		<dc:creator>Alexander Shlygin</dc:creator>
		<pubDate>Fri, 16 Apr 2010 13:54:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.jason-palmer.com/?p=7#comment-363</guid>
		<description>Hey, Jason! It&#039;s quite unconvinient to do so in javascript, &#039;cause it&#039;s more convinient to set default field value in the html code itself:




Everything you need to do with it - add some handlers, that will use safe ALT attribute to store default value and add some code to onload event:

jQuery(document).ready(function(){

$(&quot;input&quot;).each(function() {
	$(this).attr(&quot;alt&quot;, $(this).attr(&quot;value&quot;));
});

$(&quot;input&quot;).focus(function(){
	if ($(this).attr(&quot;type&quot;) == &quot;text&quot; &amp;&amp; $(this).attr(&quot;value&quot;) == $(this).attr(&quot;alt&quot;))
		$(this).attr(&quot;value&quot;, &quot;&quot;)
});

$(&quot;input&quot;).blur(function(){
	if ($(this).attr(&quot;type&quot;) == &quot;text&quot; &amp;&amp; $(this).attr(&quot;value&quot;) == &quot;&quot;)
		$(this).attr(&quot;value&quot;, $(this).attr(&quot;alt&quot;))
});

});


That&#039;s all! Graceful degradation is preserved! Good luck!</description>
		<content:encoded><![CDATA[<p>Hey, Jason! It&#8217;s quite unconvinient to do so in javascript, &#8217;cause it&#8217;s more convinient to set default field value in the html code itself:</p>
<p>Everything you need to do with it &#8211; add some handlers, that will use safe ALT attribute to store default value and add some code to onload event:</p>
<p>jQuery(document).ready(function(){</p>
<p>$(&#8220;input&#8221;).each(function() {<br />
	$(this).attr(&#8220;alt&#8221;, $(this).attr(&#8220;value&#8221;));<br />
});</p>
<p>$(&#8220;input&#8221;).focus(function(){<br />
	if ($(this).attr(&#8220;type&#8221;) == &#8220;text&#8221; &amp;&amp; $(this).attr(&#8220;value&#8221;) == $(this).attr(&#8220;alt&#8221;))<br />
		$(this).attr(&#8220;value&#8221;, &#8220;&#8221;)<br />
});</p>
<p>$(&#8220;input&#8221;).blur(function(){<br />
	if ($(this).attr(&#8220;type&#8221;) == &#8220;text&#8221; &amp;&amp; $(this).attr(&#8220;value&#8221;) == &#8220;&#8221;)<br />
		$(this).attr(&#8220;value&#8221;, $(this).attr(&#8220;alt&#8221;))<br />
});</p>
<p>});</p>
<p>That&#8217;s all! Graceful degradation is preserved! Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel</title>
		<link>http://www.jason-palmer.com/2008/08/jquery-plugin-form-field-default-value/comment-page-1/#comment-348</link>
		<dc:creator>Joel</dc:creator>
		<pubDate>Fri, 26 Mar 2010 16:42:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.jason-palmer.com/?p=7#comment-348</guid>
		<description>Thanks for all your work on the plugin, it&#039;s is exactly what I need except for one issue which is a bit unique to my situation. 
The form that I am using this on uses the Person&#039;s Last Name as their password, so I need the default text to say &quot;Last Name&quot; instead of being masked but then be masked once they input their value.

Is this possible?</description>
		<content:encoded><![CDATA[<p>Thanks for all your work on the plugin, it&#8217;s is exactly what I need except for one issue which is a bit unique to my situation.<br />
The form that I am using this on uses the Person&#8217;s Last Name as their password, so I need the default text to say &#8220;Last Name&#8221; instead of being masked but then be masked once they input their value.</p>
<p>Is this possible?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.165 seconds -->
