Tuesday, September 13, 2011

Jquery: Get Focus on First Field of Form


Put this in jQuery Document Ready event and you will get focus on Forms first field.

$("form:not(.filter) :input:visible:enabled:first").focus();

This is very useful when there are many forms.

No comments: