I'm working on changing some elements the slider on my website
my slider code looks like this:
<div class=cl1>
<h1>Some heading</h1>
<div class=sl_descr>Some description</div>
<div class=sl_price>from only €00.00<br></div>
</div>
<div class=cl2>
<h1>Some other heading</h1>
<div class=sl_descr>Some other description</div>
<div class=sl_price>from only €00.00<br></div>
</div>
<div class=cl3>
<h1>yet some heading</h1>
<div class=sl_descr>yet Some description</div>
<div class=sl_price>from only €00.00<br></div>
</div>
I would like to change price when the currency changes. To do that I would like to use javascript with getElementsByClassName and then innerHTML. However my javascript doesn't work as wanted. Here it is
document.getElementsByClassName('cl1 sl_price').innerHTML=from only £00.00<br>;
any suggestions to how could I separately address sl_price class for every cl element? Cheers