JS elimina el atributo Readonly

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