I have a list of divs like this:
Code:
<div>8</div>
<div>5</div>
<div>0</div>
<div>6</div>
<div>0</div>
<div>0</div>
<div>1</div>
Now I need to turn off all zeroes displaying, I suppose that it's something like:
Code:
if (document.getElementsByTagname("div").innerHTML="0"){
**then the innerHTML changes to " " **
}
But I'm not sure the exact steps, please enlighten me.