View Single Post
Old 01-26-2013, 03:07 AM   PM User | #1
juliushg
New Coder

 
Join Date: Jul 2012
Location: Mexico
Posts: 45
Thanks: 9
Thanked 0 Times in 0 Posts
juliushg is an unknown quantity at this point
I need to change a series of values

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.
juliushg is offline   Reply With Quote