Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8
const element = document.querySelector('button') element.setAttribute('disabled',true) simple example of setting disabled attribute to a button
6th Jul 2020, 9:26 PM
Bhavya
Bhavya - avatar