Tag Archives: Visible

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!