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

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

python - Pygame screen.blit not working -

c# - Web API response xml language -