Listen on js the render events when a Select change.
Hi. I have a question about render events.
It's posible to listen the event with js when a Select field change to refresh some js functions?
8 Replies
Checkout the livewire listeners:
https://laravel-livewire.com/docs/2.x/events
Livewire
Events | Livewire
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
And it's posible to listen it in a x-on to change the data of x-data?
May I ask what is your goal?
What are you trying to do?
I have a div with x-data={status: getStatus()}
And i need to rerun getStatus() function and assign the return value to status
when the select value change
Livewire
Events | Livewire
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
Ok, thanks, that works.
Thanks you two @toeknee_iom and @Leandro Ferreira