Say I have a form with some rad radio buttons. One of them is so rad that choosing it means you need to fill in some text. The radio button and the text box have the same labelling, right? So how do I actually
<label>
that jazz for proper accessibility? Let me know in the comments or on Twitter
@keithwyland
<label>
for the radio button?
but then the text box doesn't technically have a label, right?
<label>
for the text input?
but then the radio button doesn't technically have a label, right?
but then what goes in the
for=""?
but then the labels are repetetive, no?
via Ben Edwards
each input needs it's own label (it doesn't matter whether it's before, after, or wrapping), so you could do some magic with `:checked` and `~` OR js to show the hidden label/input when you need to fill out the extra text.