javascript - how to hide image by its icon-value -
hi cant find solution question on google. want hide images using there icon-value in below example want hide image have icon-value="1" in div have .box class
<div class="box"> <div class="icon"><img src="xyz/smiley.png" icon-value="1" icon-index="0"></div> <div class="icon"><img src="xyz/1.png" icon-value="2" icon-index="1"></div> </div>
use attribute selector.
.box img[icon-value="1"] { display: none; }
Comments
Post a Comment