I've noticed that this particular method hasn't been addressed yet due to the document.GetElementsByClassName I'm using, but for some reason it's not working. My goal is to add a specific value (a string) to the page. I have located an existing div by its class name and attempted to add a text node that should display the data item "Account Name:". It seems like there might be an issue with my syntax or logic, but I'm having trouble pinpointing it.
Could someone provide some insight?
this.updateUname = function() {
var newNode[0] = getElementsByClassName('acc');
var div = document.createTextNode('div');
div.innerHTML = "Account Name:";
newNode.appendChild(div);
}
Thank you in advance. ajfbiz