I want to change the background color of <div>
s of id
s childDiv1
and childDiv4
only..how to do such kind of thing (note that the list of div
may be a huge list and the the wanted div
list is from an array)
Eg:->
stylingdivs:{'childDiv1','childDiv4'}
please help me with this
<div class="parentDiv">
<div class="childDiv1342">
First Div Child
</div>
<div class="childDiv2244">
Second Div Child
</div>
<div class="childDiv3342">
Third Div Child
</div>
<div class="childDiv4324">
Fourth Div Child
</div>
`<div class="childDiv5324">
Fifth Div Child
</div>`
`<div class="childDiv6324">
Sixth Div Child
</div>`
`<div class="childDiv7323">
Seventh Div Child
</div>`
</div>