.setAttribute(“disabled”, false); changes editable attribute to false

A disabled element is, (self-explaining) disabled and thereby logically not editable, so: set the disabled attribute […] changes the editable attribute too Is an intended and well-defined behaviour. The real problem here seems to be you’re trying to set disabled to false via setAttribute() which doesn’t do what you’re expecting. an element is disabled if … Read more