When clicking on the first or second value of the radio button, it selects the first option. Here is the HTML code:
@supports(-webkit-appearance: none) or (-moz-appearance: none) {
input[type='radio'],
input[type='checkbox'] {
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
}
input[type="radio"] {
top: 0;
left: 0;
height: 1.5vw;
width: 1.5vw;
background-color: #ffff;
border-radius: 50%;
cursor: pointer;
}
<div class="radio-group">
<fieldset>
<legend>Gender</legend>
<label for="gender" id="gender-label">
Male
</label>
<input type="radio" name="gender" id="gender" value="male">
<label for="gender" id="gender-label">
Female
</label>
<input type="radio" name="gender" id="gender" value="female">
</fieldset>
</div>
Is there a way to make it so that when a user clicks on "Female," the female radio button becomes checked? Any assistance would be greatly appreciated! Thank you