How do you access a certain div
that has a certain CSS property?
For example:
<div class="container">
<div id=1 class="child"></div>
<div id=2 class="child"></div>
<div id=3 class="child"></div>
. .
<div id=50 class="child" style= "background:yellow;"></div>
. . .
<div id=100 class="child"></div>
</div>
So, how can I access the div
with the background: yellow
and retrieve its id
?
The div
with the yellow background changes to different div
so will right this in jQuery?