I am currently facing a challenge in applying CSS to the label element when the corresponding input is selected.
After attempting and failing to use input:checked + label due to limitations in the HTML structure that cannot be altered, I seek alternative solutions.
Is there anyone who can guide me on achieving this using Javascript, JQuery, or CSS?
<div class="radio-button-container">
<div class="radio-button">
<input type="radio" value="QUARTER" name="frequency" id="frequencyQUARTER">
</div>
<div class="radio-label">
<label for="frequencyQUARTER">New Label</label>
</div>
</div>
Appreciate any assistance provided.