Hello!
Is there a best-practice indication about using setAttribute instead of the dot (.) attribute notation?
e.g.
myObj.setAttribute("class","nameOfClass");
- and -
myObj.className="nameOfClass";
OR
myObj.setAttribute("id","someID");
- and -
myObj.id="someID";
etc
Thank you.