Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js remove readonly attribute

document.getElementById('myButton').onclick = function() {
    document.getElementById('myInput').removeAttribute('readonly');
};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #remove #readonly #attribute
ADD COMMENT
Topic
Name
4+1 =