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
Any ideas anyone ?
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
I’ll take a look into this. Thanks