5

I'm looking for a css selector to select the inner div using the outerDivs class and data attribute. As I only want to be able to select the inner div if the data is set to true is this possible ?

<div class="outerDiv" data-Outer="true"> 
  <div class="inner"> </div>
</div>
Michael Benjamin
  • 346,931
  • 104
  • 581
  • 701
Ryan Holmes
  • 547
  • 6
  • 14

1 Answers1

8

.outerDiv[data-Outer="true"] > .inner should do the trick.

trysmudford
  • 578
  • 4
  • 16