remove disabled attribute to input

by Cristian C.

HTML

method 1 <input type="text" onclick="this.disabled=false;" disabled >
<hr>
method 2 <input type="text" onclick="this.removeAttribute('disabled');" disabled >
<hr>
method 3 <input type="text" onclick="this.removeAttribute('readonly');" readonly >

CSS

input[readonly] {
  background-color: lightgrey;
}