jQuery basics - selector
- by rkrauter
I feel dumb.. Why is my "header" div not being selected? It's background color is not being changed. I am learning about the + operator so I am not looking for a different selector.
E + F an F element immediately preceded by an E element
$("#divA + div").css("background-color", "red");
Html
<div id="divA">
<div>
Header</div>
Lorem Ipsum is simply dummy text of the
printing and typesetting industry.
</div>
Thanks!