When it comes to focus the first text field on a page using jQuery , the usual solution would be:
$(":text:visible:enabled:eq(0)").focus();This query means to find the first of input text field(s), which is/are visible and enabled. However, this would also extract text field(s) which is/are under a display:none parent(s). So a more complete way would be:
$(