'Change the div class if user checked a radio button
Hi to all i have this two div who has inside a hidden radio button. I want when user click one choise to change the choise-block class with other class. My mind is stucked and i search for possible solutions:
<div class="choise-block">
<div class="form-check">
<input class="form-check-input visually-hidden" type="radio" @change="choiseCheck">
<label class="form-check-label">
<h3>Question 1</h3>
</label>
</div>
</div>
<div class="choise-block">
<div class="form-check">
<input class="form-check-input visually-hidden" type="radio" @change="choiseCheck">
<label class="form-check-label">
<h3>Question 2</h3>
</label>
</div>
</div>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
