ID do elemento de mudança de javascript
var element = document.getElementById("oldID");
element.id = "newID";
TC5550
var element = document.getElementById("oldID");
element.id = "newID";
var element = document.getElementsByTagName("div")[0];
var id = element.id;
All currently used browsers:
element.id=id;
myElement.id=newId;
element.className=class;
myElement.className=newClassName;