Skip to content
Advertisement

How to toggle a boolean value with livewire and checkboxes

I am trying to create this filter thing with check boxes.

I am trying to toggle the state of the check boxes to be true or false

JavaScript
JavaScript

When I do this approach, I am not sure how to make the inverse work, so if it is unchecked It would be false. Is there a way to add something to this, so if it’s clicked again it would change it to false?

JavaScript

Any help much appreciated 🙂

Advertisement

Answer

JavaScript

I prefer dev this kind of login in a backend method.

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement