Is there a way in HTML to selectively mark multiple input elements as either readonly or disabled without affecting the entire form?
I am aware that you can disable an entire form, but is there a method to apply this setting to individual inputs only, perhaps by wrapping them with a certain element?
<form>
<input name="not-readonly">
<div readonly="readonly">
<input name="readonly-field-1">
<input name="readonly-field-2">
</div>
<input type="submit">
</form>
Can this issue be addressed using CSS, or would JavaScript be necessary for a solution?