I'm trying to enable many radio buttons using DOM manipulation to avoid click each time on all buttons to enable them.
I try this:
document.getElementById("on").disabled = true;
and:
on-off-btn.off.active.setAttribute("enable", "");
Without success. I think I'm doing wrong? My HTML looks like this:
<form>
<div class="on-off-wrapper">
<fieldset class="enabled">
<div label="On" title="on" class="on-off-btn on active">
<input type="radio" id="on" name="on_off" value="on">
<span>On</span></div>
<div label="Off" title="off" class="on-off-btn off">
<input type="radio" id="off" name="on_off" value="on">
<span>Off</span></div></fieldset></div>
</form>
The code is always same about 60 time like this so this is why if I can enable all in one shot would be more simple. I try this using the google dev tool with the console...