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.

Comments

Popular posts from this blog

Reviving this blog after almost 10 years

Are parents really responsible for their children's bad habits?