<?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: Accessibly autopopulating text input fields with&#160;jQuery</title>
	<atom:link href="http://theandystratton.com/2009/accessibly-autopopulating-text-input-fields-with-jquery/feed" rel="self" type="application/rss+xml" />
	<link>http://theandystratton.com/2009/accessibly-autopopulating-text-input-fields-with-jquery</link>
	<description>WordPress and PHP Developer</description>
	<lastBuildDate>Thu, 26 Jan 2012 17:22:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Rob Wilkerson</title>
		<link>http://theandystratton.com/2009/accessibly-autopopulating-text-input-fields-with-jquery/comment-page-1#comment-4</link>
		<dc:creator>Rob Wilkerson</dc:creator>
		<pubDate>Sun, 08 Mar 2009 04:41:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.andystratton.com/?p=3#comment-4</guid>
		<description>True, but I know I do it in many cases where I&#039;m sure that the content will likely extend beyond what the input can contain. It&#039;s a nice way of showing the entire content without violating the design, IMO. For that reason, the latter option may not work for me. I&#039;ll have to think about the edge cases, though; it seems like it might work anyway, since it keys on an empty value to trigger any change of the value.</description>
		<content:encoded><![CDATA[<p>True, but I know I do it in many cases where I&#8217;m sure that the content will likely extend beyond what the input can contain. It&#8217;s a nice way of showing the entire content without violating the design, IMO. For that reason, the latter option may not work for me. I&#8217;ll have to think about the edge cases, though; it seems like it might work anyway, since it keys on an empty value to trigger any change of the value.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://theandystratton.com/2009/accessibly-autopopulating-text-input-fields-with-jquery/comment-page-1#comment-3</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Fri, 06 Mar 2009 05:04:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.andystratton.com/?p=3#comment-3</guid>
		<description>Thanks, Rob.  Another option we thought of was just taking &lt;em&gt;any&lt;/em&gt; input that has the title attribute set behave this way since adding the title attribute to an input element is pretty rare:

&lt;pre&gt;&lt;code&gt;	$(document).ready(function(){

		$(&quot;input[title!=&#039;&#039;]&quot;).each(function(){
			$(this).each( function(){
				if ( $(this).val() == &quot;&quot; ) {
					$(this).val( $(this).attr(&quot;title&quot;) );
				}
			});
			$(this).focus(function(){
				if ( $(this).val() == $(this).attr(&quot;title&quot;) ) {
					$(this).val(&quot;&quot;);
				}
			});
			$(this).blur(function(){
				if ( $(this).val() == &quot;&quot; ) {
					$(this).val( $(this).attr(&quot;title&quot;) );
				}
			});
		});

	});&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Thanks, Rob.  Another option we thought of was just taking <em>any</em> input that has the title attribute set behave this way since adding the title attribute to an input element is pretty rare:</p>
<pre><code>	$(document).ready(function(){

		$("input[title!='']").each(function(){
			$(this).each( function(){
				if ( $(this).val() == "" ) {
					$(this).val( $(this).attr("title") );
				}
			});
			$(this).focus(function(){
				if ( $(this).val() == $(this).attr("title") ) {
					$(this).val("");
				}
			});
			$(this).blur(function(){
				if ( $(this).val() == "" ) {
					$(this).val( $(this).attr("title") );
				}
			});
		});

	});</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Wilkerson</title>
		<link>http://theandystratton.com/2009/accessibly-autopopulating-text-input-fields-with-jquery/comment-page-1#comment-2</link>
		<dc:creator>Rob Wilkerson</dc:creator>
		<pubDate>Thu, 05 Mar 2009 22:45:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.andystratton.com/?p=3#comment-2</guid>
		<description>I like this. I guess I either missed or forgot about Roger&#039;s article, but this is simple and elegant with less text hard coded throughout the page. Can&#039;t beat that. Think I&#039;ll start using this myself.</description>
		<content:encoded><![CDATA[<p>I like this. I guess I either missed or forgot about Roger&#8217;s article, but this is simple and elegant with less text hard coded throughout the page. Can&#8217;t beat that. Think I&#8217;ll start using this myself.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

