JS Usuń atrybut ReadOnly
document.getElementById('myButton').onclick = function() {
document.getElementById('myInput').removeAttribute('readonly');
};
Powerful Pollan
document.getElementById('myButton').onclick = function() {
document.getElementById('myInput').removeAttribute('readonly');
};