<?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/"
	>
	<channel>
		<title>Comments on: Focus first Form field with jQuery</title>
		<link>http://www.gerd-riesselmann.net/development/focus-first-form-field-with-jquery</link>
		<description>Gerd Riesselmann: Notes From the Bog-All Around Objects: C++, .NET, PHP, Design Patterns And More</description>
		<language>en</language>
		<pubDate>Wed, 25 Jul 2007 01:38:01 +0200</pubDate>
		<generator>Drupal TotalFeeds Module</generator>
				<image>
			<title>Comments on: Focus first Form field with jQuery</title>
			<link>http://www.gerd-riesselmann.net/development/focus-first-form-field-with-jquery</link>
			<url>http://www.gerd-riesselmann.net/images/feedbog.png</url>
						<width>130</width>
			<height>80</height>
					</image>
			<item>
		<title>You can also</title>
		<link>http://www.gerd-riesselmann.net/node/129%2523comment-3420</link>
		<description>You can also use
&lt;code&gt;$(&quot;input:visible:enabled:first&quot;).focus();&lt;/code&gt;
to bring focus to any (named or unnamed form) input element.

But I wouldn&#039;t have known that if it weren&#039;t for your comment. ;) </description>
		<content:encoded><![CDATA[<p>You can also use<br />
<code>$(&quot;input:visible:enabled:first&quot;).focus();</code><br />
to bring focus to any (named or unnamed form) input element.</p>
<p>But I wouldn't have known that if it weren't for your comment. ;)</p>
]]></content:encoded>
		<pubDate>Wed, 25 Jul 2007 01:38:01 +0200</pubDate>
		<dc:creator>Robert</dc:creator>
		<guid isPermaLink="true">http://www.gerd-riesselmann.net/node/129%2523comment-3420</guid>
							</item>
		<item>
		<title>Impressing.</title>
		<link>http://www.gerd-riesselmann.net/node/129%2523comment-3353</link>
		<description>Impressing.</description>
		<content:encoded><![CDATA[<p>Impressing.</p>
]]></content:encoded>
		<pubDate>Thu, 22 Mar 2007 10:16:00 +0100</pubDate>
		<dc:creator>Gerd Riesselmann</dc:creator>
		<guid isPermaLink="true">http://www.gerd-riesselmann.net/node/129%2523comment-3353</guid>
							</item>
		<item>
		<title>Using some of jquery&#039;s</title>
		<link>http://www.gerd-riesselmann.net/node/129%2523comment-3352</link>
		<description>Using some of jquery&#039;s &lt;a href=&quot;http://docs.jquery.com/DOM/Traversing/Selectors#Custom_Selectors&quot;&gt;custom selectors&lt;/a&gt; this works a treat.

&lt;code&gt;$(&quot;#myform :input:visible:enabled:first&quot;).focus();&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Using some of jquery's <a href="http://docs.jquery.com/DOM/Traversing/Selectors#Custom_Selectors">custom selectors</a> this works a treat.</p>
<p><code>$(&quot;#myform :input:visible:enabled:first&quot;).focus();</code></p>
]]></content:encoded>
		<pubDate>Wed, 21 Mar 2007 16:21:54 +0100</pubDate>
		<dc:creator>Will Kelly</dc:creator>
		<guid isPermaLink="true">http://www.gerd-riesselmann.net/node/129%2523comment-3352</guid>
							</item>
		<item>
		<title>I use something like the</title>
		<link>http://www.gerd-riesselmann.net/node/129%2523comment-3331</link>
		<description>I use something like the following to find the first field in a form:

&lt;code&gt;
jQuery.fn.offsetTop = function() {
  var e = this.get(0);
  if(!e.offsetParent) return e.offsetTop;
  return e.offsetTop + $(e.offsetParent).offsetTop();
};

var firstField;

jQuery.each([ &#039;input&#039;, &#039;select&#039;, &#039;textarea&#039; ], function() {
  var field = $(this + &#039;:visible:enabled:first&#039;, form).get(0);
  if(field)
    if(!firstField || $(field).offsetTop() &lt; $(firstField).offsetTop())
      firstField = field;
});
&lt;/code&gt;
Looks like indenting is off in this post, but you get the idea.</description>
		<content:encoded><![CDATA[<p>I use something like the following to find the first field in a form:</p>
<p><code> jQuery.fn.offsetTop = function() {   var e = this.get(0);   if(!e.offsetParent) return e.offsetTop;   return e.offsetTop + $(e.offsetParent).offsetTop(); };  var firstField;  jQuery.each([ &#039;input&#039;, &#039;select&#039;, &#039;textarea&#039; ], function() {   var field = $(this + &#039;:visible:enabled:first&#039;, form).get(0);   if(field)     if(!firstField || $(field).offsetTop() &lt; $(firstField).offsetTop())       firstField = field; }); </code><br />
Looks like indenting is off in this post, but you get the idea.</p>
]]></content:encoded>
		<pubDate>Mon, 26 Feb 2007 15:04:45 +0100</pubDate>
		<dc:creator>Dan Kubb</dc:creator>
		<guid isPermaLink="true">http://www.gerd-riesselmann.net/node/129%2523comment-3331</guid>
							</item>
		</channel>
	</rss>
	