Selecting not being required

<label for="gender" required>
				<input id="gender" type="radio" name="gender" value="male">male<br/>
				<input id="gender" type="radio" name="gender" value="female">female<br/>
			</label>

Do you have a question?

yes i tryed t make it required but its not working

It’s hard to help without more context, but it looks like you have a typo in your label element.

corrected it still not working

required is not an attribute on label

you should also have one label for each radio button

1 Like

so u cannot use 1 label for many inputs?

also you can’t have an id element being repeated on multiple elements, an id must be unique

2 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.