-
Website
http://buildingbrowsergames.com -
Original page
http://buildingbrowsergames.com/2008/09/03/making-your-forms-auto-focus-ruby-on-rails/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
gabrielbianconi
1 comment · 1 points
-
Luke
82 comments · 1 points
-
spatlabor
1 comment · 1 points
-
HughCompton
2 comments · 1 points
-
obat jerawat
1 comment · 1 points
-
-
Popular Threads
<pre>
$(window).ready(function(){
$("input:nth-child(0)").focus()
})
</pre>
with Prototype you can do:
<pre>
document.observe("window:loaded", function() {
// initially hide all containers for tab content
$('user_login').focus()
});
</pre>