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 assume this was not a valid option when this was originally asked, but you can now use document.getElementsByClassName('');. For example:
document.getElementsByClassName('');
var elements = document.getElementsByClassName(names); // or: var elements = rootElement.getElementsByClassName(names);
See the MDN documentation for more.