Answers for "javascript setattribute disabled"

5

remove disabled attribute javascript

document.getElementById('my-input-id').disabled = false;
Posted by: Guest on May-29-2020
0

js setattribute

const link = document.querySelector('a');

console.log(link.getAttribute('href'));
link.setAttribute('href', 'https://yandex.ru');
link.innerText = 'The Next Link';

const mssg = document.querySelector('p');

console.log(mssg.getAttribute('class'));

mssg.setAttribute('class', 'success');
mssg.setAttribute('style', 'color: green;');
Posted by: Guest on July-19-2020

Code answers related to "javascript setattribute disabled"

Code answers related to "Javascript"

Browse Popular Code Answers by Language