I’m having this which getting values from a method, i want to be able to change and click other input than push that to the method:
<input type="button" class="btn btn-secondary {{ isset($selectedColdItem) && $selectedColdItem === 'yes' ? 'selected' : '' }}" id="yesButton" name="coldItem" value="yes" style="{{ isset($selectedColdItem) && $selectedColdItem === 'yes' ? 'background-color: green;' : '' }}">
<input type="button" class="btn btn-secondary ml-2 {{ isset($selectedColdItem) && $selectedColdItem === 'no' ? 'selected' : '' }}" id="noButton" name="hotItem" value="no" style="{{ isset($selectedColdItem) && $selectedColdItem === 'no' ? 'background-color: green;' : '' }}">