js remove readonly attribute
snippet in javascript

js remove readonly attribute

user8378

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