I want to replace the contents within a html element so I\'m using the following function for that:
function ReplaceContentInContainer(id,content) { var c
I think something like:
function ReplaceContentInContainer(klass,content) { var elems = document.getElementsByTagName('*'); for (i in elems){ if(elems[i].getAttribute('class') == klass || elems[i].getAttribute('className') == klass){ elems[i].innerHTML = content; } } }
would work