The neighbourhood head’s games sign-up grouped with fieldset and legend: the browser answers which controls a fieldset makes :disabled (the ones in its legend…
Grouped radios and checkboxes with no group name leave screen reader users guessing the question. And a form section switched on later ("Antar ke rumah") is tidiest off with one disabled on its fieldset: no loop in JS, new fields follow on their own, and disabled controls cannot be focused and are not sent.
legend names the group; disabled on a fieldset spreads to what it holds
<p>, <div>, <span>) is tied to no radio. Wrap the group in a <fieldset> and make the question its <legend>: that legend becomes the group name, and a screen reader says it as focus enters.<legend> away from the first child loses the group’s name <legend> must be a direct child of the fieldset, and by the spec its first. Wrapped in a <div> (often for styling), it is no child any more: the group loses its name and the legend falls back to plain text. Want to style it? Put the class on the legend itself.disabled on the <fieldset> (or fs.disabled = true from JS): every control inside goes off, fields added later included, except what its first <legend> holds. disabled on a <div> means nothing.disabled on the <fieldset> Every control inside matches :disabled at once: the neighbourhood head’s rockers all go down, and Tab skips them.disabled on a <div> Nothing goes off. Only a fieldset and the controls themselves understand that attribute.