xhtml - javascript removeAttribute() doesn't remove "disabled" -
subject #2: <input type="text" name="subject2" id="sub2" class="i2" size="20" disabled> <br> <button onclick="document.getelementbyid('sub2').removeattribute('disabled')"> add subject</button>
this wrote, when press button input field becomes white (becomes useable) second, , returns grey , disabled. did wrong? thank you
Comments
Post a Comment