I have multiple input
tags like below:
<input type="checkbox" class="check" disabled id="identifier">
and:
<input type="checkbox" class="check" disabled>
I'd like to disable disabled
attribute.
If i do it like this:
document.getElementById("identifier").removeAttribute('disabled');
Everything seems to work fine. However when i try to disable this attribute by getting elements by class name, the elements won't disable. I tried following examples:
document.getElementsByClassName("check").removeAttribute('disabled');
and:
document.querySelectorAll(".check").removeAttribute('disabled');
Both examples won't work. Could you please spot what am I doing wrong? I would really appreciate some help ;). Thanks in advance.