<?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: Set focus on first field with jQuery</title>
	<atom:link href="http://www.kolodvor.net/2008/01/17/set-focus-on-first-field-with-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kolodvor.net/2008/01/17/set-focus-on-first-field-with-jquery/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=set-focus-on-first-field-with-jquery</link>
	<description>ruby, rails, javascript, jquery, ...</description>
	<lastBuildDate>Sun, 22 Jan 2012 19:56:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Heitor</title>
		<link>http://www.kolodvor.net/2008/01/17/set-focus-on-first-field-with-jquery/#comment-51</link>
		<dc:creator>Heitor</dc:creator>
		<pubDate>Wed, 28 Dec 2011 13:10:30 +0000</pubDate>
		<guid isPermaLink="false">http://kolodvor.net/2008/01/17/set-focus-on-first-field-with-jquery/#comment-51</guid>
		<description>Almost 8 months late but...

$(&quot;select:first&quot;).focus();</description>
		<content:encoded><![CDATA[<p>Almost 8 months late but&#8230;</p>
<p>$(&#8220;select:first&#8221;).focus();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johnsmithpeterkay</title>
		<link>http://www.kolodvor.net/2008/01/17/set-focus-on-first-field-with-jquery/#comment-32</link>
		<dc:creator>johnsmithpeterkay</dc:creator>
		<pubDate>Tue, 31 May 2011 18:11:08 +0000</pubDate>
		<guid isPermaLink="false">http://kolodvor.net/2008/01/17/set-focus-on-first-field-with-jquery/#comment-32</guid>
		<description>Hi, I am trying to set the focus in dropdown using Jquery. Can any one help me out.</description>
		<content:encoded><![CDATA[<p>Hi, I am trying to set the focus in dropdown using Jquery. Can any one help me out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://www.kolodvor.net/2008/01/17/set-focus-on-first-field-with-jquery/#comment-31</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Thu, 30 Dec 2010 00:52:44 +0000</pubDate>
		<guid isPermaLink="false">http://kolodvor.net/2008/01/17/set-focus-on-first-field-with-jquery/#comment-31</guid>
		<description>This is the correct code that works.

#input refers to the name of the id attribute for the input field.

//set focus to first input box
$(&#039;#input&#039;).focus();
$(&quot;#input:text:visible:first&quot;).focus(); 

A live demo can be seen here: http://blogoola.com/signup/</description>
		<content:encoded><![CDATA[<p>This is the correct code that works.</p>
<p>#input refers to the name of the id attribute for the input field.</p>
<p>//set focus to first input box<br />
$(&#8216;#input&#8217;).focus();<br />
$(&#8220;#input:text:visible:first&#8221;).focus(); </p>
<p>A live demo can be seen here: <a href="http://blogoola.com/signup/" rel="nofollow">http://blogoola.com/signup/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chuck</title>
		<link>http://www.kolodvor.net/2008/01/17/set-focus-on-first-field-with-jquery/#comment-30</link>
		<dc:creator>Chuck</dc:creator>
		<pubDate>Tue, 14 Dec 2010 09:09:57 +0000</pubDate>
		<guid isPermaLink="false">http://kolodvor.net/2008/01/17/set-focus-on-first-field-with-jquery/#comment-30</guid>
		<description>Dead simple; works perfectly. Thanks!</description>
		<content:encoded><![CDATA[<p>Dead simple; works perfectly. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harry</title>
		<link>http://www.kolodvor.net/2008/01/17/set-focus-on-first-field-with-jquery/#comment-29</link>
		<dc:creator>Harry</dc:creator>
		<pubDate>Mon, 11 Oct 2010 13:09:40 +0000</pubDate>
		<guid isPermaLink="false">http://kolodvor.net/2008/01/17/set-focus-on-first-field-with-jquery/#comment-29</guid>
		<description>nice tip</description>
		<content:encoded><![CDATA[<p>nice tip</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vlado</title>
		<link>http://www.kolodvor.net/2008/01/17/set-focus-on-first-field-with-jquery/#comment-28</link>
		<dc:creator>vlado</dc:creator>
		<pubDate>Sun, 08 Aug 2010 07:54:40 +0000</pubDate>
		<guid isPermaLink="false">http://kolodvor.net/2008/01/17/set-focus-on-first-field-with-jquery/#comment-28</guid>
		<description>@Bill

I think what you need is:
$(&quot;input[name=&#039;myname&#039;]&quot;).focus()</description>
		<content:encoded><![CDATA[<p>@Bill</p>
<p>I think what you need is:<br />
$(&#8220;input[name='myname']&#8220;).focus()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://www.kolodvor.net/2008/01/17/set-focus-on-first-field-with-jquery/#comment-27</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Sat, 07 Aug 2010 14:57:49 +0000</pubDate>
		<guid isPermaLink="false">http://kolodvor.net/2008/01/17/set-focus-on-first-field-with-jquery/#comment-27</guid>
		<description>How would you do this to a named input field?  Or should I assign it a class or id value?

I would rather do it by its name.

Thanks.
Bill</description>
		<content:encoded><![CDATA[<p>How would you do this to a named input field?  Or should I assign it a class or id value?</p>
<p>I would rather do it by its name.</p>
<p>Thanks.<br />
Bill</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Set focus on first field with Prototype &#171; Kolodvor</title>
		<link>http://www.kolodvor.net/2008/01/17/set-focus-on-first-field-with-jquery/#comment-26</link>
		<dc:creator>Set focus on first field with Prototype &#171; Kolodvor</dc:creator>
		<pubDate>Sat, 02 Jan 2010 14:33:50 +0000</pubDate>
		<guid isPermaLink="false">http://kolodvor.net/2008/01/17/set-focus-on-first-field-with-jquery/#comment-26</guid>
		<description>[...] you are using jQuery see this [...] </description>
		<content:encoded><![CDATA[<p>[...] you are using jQuery see this [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Peno</title>
		<link>http://www.kolodvor.net/2008/01/17/set-focus-on-first-field-with-jquery/#comment-25</link>
		<dc:creator>Kevin Peno</dc:creator>
		<pubDate>Wed, 23 Dec 2009 22:19:49 +0000</pubDate>
		<guid isPermaLink="false">http://kolodvor.net/2008/01/17/set-focus-on-first-field-with-jquery/#comment-25</guid>
		<description>Correction, I meant to remove the :text part of my query. Should be:

$(&quot;:input:visible:first&quot;).focus();</description>
		<content:encoded><![CDATA[<p>Correction, I meant to remove the :text part of my query. Should be:</p>
<p>$(&#8220;:input:visible:first&#8221;).focus();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Peno</title>
		<link>http://www.kolodvor.net/2008/01/17/set-focus-on-first-field-with-jquery/#comment-24</link>
		<dc:creator>Kevin Peno</dc:creator>
		<pubDate>Wed, 23 Dec 2009 22:16:21 +0000</pubDate>
		<guid isPermaLink="false">http://kolodvor.net/2008/01/17/set-focus-on-first-field-with-jquery/#comment-24</guid>
		<description>&quot;how about $(”input:text:visible:first”).focus();?&quot;

Actually, that should be: $(&quot;:input:text:visible:first&quot;).focus();

This will grab focus to the first form field, regardles sof type (select, input, textarea).</description>
		<content:encoded><![CDATA[<p>&#8220;how about $(”input:text:visible:first”).focus();?&#8221;</p>
<p>Actually, that should be: $(&#8220;:input:text:visible:first&#8221;).focus();</p>
<p>This will grab focus to the first form field, regardles sof type (select, input, textarea).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

