JS Remova o atributo readonly

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