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

js fiddle demo


Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -