JS menghapus atribut readonly

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