Answers for "how to add and remove readonly attribute in javascript"

2

js remove readonly attribute

document.getElementById('myButton').onclick = function() {
    document.getElementById('myInput').removeAttribute('readonly');
};
Posted by: Guest on February-26-2020

Code answers related to "how to add and remove readonly attribute in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language