say I have a bunch of radio buttons in an html form. How do I find and disable all radio input types with a given name="?"
value (where ? can be anything I specify)?
It is simple:
$('input[name="name_here"]').attr('disabled', 'disabled');
Replace name_here
with the name of your radio buttons.
And you can enable it back from code using:
$('input[name="name_here"]').removeAttr('disabled'');
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