I have 2 <fieldset>
s on my page, but one of them should have all of it elements disabled depending on some user's choice.
The fieldsets contain text inputs, selects, and links. Is there a way to disable all of them instead of disabling them one by one?
What about using the children selector?
$("#myfieldeset").children().attr("disabled", "disabled");
You can also filter the children selection:
$("#myfieldeset").children("a,input");
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