Report question

Question: How to add/update an attribute to an HTML element using JavaScript?