jquery, set focus on the first enabled input or select or textarea on the page - Stack Overflow

PHOTO EMBED

Tue Mar 25 2025 15:54:04 GMT+0000 (Coordinated Universal Time)

Saved by @agungnb #jquery

$('form :input:text:visible:not(input[class*=filter]):first').focus();
content_copyCOPY

https://stackoverflow.com/questions/4328381/jquery-set-focus-on-the-first-enabled-input-or-select-or-textarea-on-the-page