JS Attributes Reference
.setAttribute(name, value)
Adds a new attribute or changes the value of an existing attribute on the specified element.
btn.setAttribute('disabled', 'true');.classList API
The most modern way to handle classes. Use .add(), .remove(), and .toggle().