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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -