Daily Archives: July 23, 2010

You are browsing the site archives by date.

Jquery focus on first visual input element

I wanted the first visual form element, not having the noFocus class, get the focus when the page loads

$(‘form input:visible:not(.noFocus):first’).focus();

I love jquery!