Hey guys,
I’m trying something super simple - to have a radio input which the user can select. For some reason, as soon as I click one, a different one gets selected, I click another and the same thing happens.
(The above should have selected Dog)
I’m sure I’m doing something really simply wrong, here’s my blade:
<div>
Cats
<input wire:model="onlyCats" id="onlyCats" name="animal" type="radio" class="form-radio h-4 w-4 text-indigo-600 transition duration-150 ease-in-out" />
</div>
Dogs
<div>
<input wire:model="onlyDogs" id="onlyDogs" name="animal" type="radio" class="form-radio h-4 w-4 text-indigo-600 transition duration-150 ease-in-out" />
</div>
<div>
Both
<input wire:model="both" id="both" name="animal" type="radio" class="form-radio h-4 w-4 text-indigo-600 transition duration-150 ease-in-out">
</div>
And my controller they are defined as:
public $onlyCats;
public $onlyDogs;
public $both;
How should I be using Radios?