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
A Simple and an easy way
var cusid_ele = document.getElementsByClassName('custid'); for (var i = 0; i < cusid_ele.length; ++i) { var item = cusid_ele[i]; item.innerHTML = 'this is value'; }