This seems simple but can't quite figure it out. I have three Divs that toggle based on the selection, but I'm trying to also have a "view all" button that toggles to show all three divs. I also am hoping to have the first Div show on load.
<div x-data="{ color: '' }">
<button x-on:click="color='Yellow', color='Red', color='Orange'">Show All</button>
<select x-model="color">
<option>Red</option>
<option>Orange</option>
<option>Yellow</option>
</select>
<div x-show="color === 'Red'">Show on Load</div>
<div x-show="color === 'Orange'">Orange</div>
<div x-show="color === 'Yellow'">Yellow</div>
</div>
Link to JSbin