0
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 is what i wrote, when i press the button the input field becomes white (becomes useable) for a second, and immediately returns to be grey and disabled. What did i do wrong? thank you

JS Fiddle demo

blex
  • 24,941
  • 5
  • 39
  • 72
Rom
  • 143
  • 1
  • 8

0 Answers0