Is there a way (like an attribute on an element) to 'undisable' a specific element when the parent fieldset
is disabled? Preferable without any JavaScript. If not, what is a good practice to disable an entire form with specific exceptions?
<fieldset disabled>
Name: <input type="text"><br>
<!-- Email shouldn't be disabled -->
Email: <input type="text"><br>
<!-- more fields ... -->
</fieldset>
Put your input inside the <legend>
element:
<fieldset disabled>
<legend>
<label>Email: <input></label>
</legend>
<label>Name: <input></label>
<!-- more fields ... -->
</fieldset>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With