JS Usuń atrybut ReadOnly

document.getElementById('myButton').onclick = function() {
    document.getElementById('myInput').removeAttribute('readonly');
};
Powerful Pollan