jquery, set focus on the first enabled input or select or textarea on the page -
it's straightforward. want set focus first enabled , not hidden control on page.
for textbox, have
$("input[type='text']:visible:enabled:first").focus();
but want "all" form input controls: textbox, checkbox, textarea, dropdown, radio in selector grab first enabled , not hidden control. suggestions?
$(':input:enabled:visible:first').focus();
Comments
Post a Comment