Focus another select after change

Hi all I have the need for the focus to change automatically. Eg I have company name select with autofocus on page load using ->autofocus(). After the company is selected I need it to auto focus onto the next select for 'product type'. Does anyone know how to achieve this? FYI: I am using a form on a custom livewire page. thanks all
3 Replies
David | Fortune Validator
Any ideas anyone ?
badriysha
badriysha3d ago
hi @David | Fortune Validator you can try using Alpine focus plugins by adding x-trap on extraAlpineAttribute method https://alpinejs.dev/plugins/focus
Focus — Alpine.js
Easily manage focus within the page
David | Fortune Validator
I’ll take a look into this. Thanks
Want results from more Discord servers?
Add your server
More Posts