In general, the problem is such that I have many class elements and for each function is called passing the object id to js and already there is some magic that at the end changes the value via inner.html:
(js file is up and running).
<body> <div class = "example"> <SCRYPT> testing(id); </SCRYPT> </div> </body> In a function in which I, for example, want to change the value of only the first element, I write the following:
function testing(id){ document.get.ElementsByClassName("example")[0].innerHTML = "zB"; } The funny thing is that in Chrome, FireFox this option works, but in Opera and IE nothing happens.
And I also tried to call this function directly from html, everything works well in all browsers.
How to solve: 3