3

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
  • 265,915
  • 79
  • 461
  • 583
Ryan Holmes
  • 467
  • 4
  • 13

1 Answers1

8

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

trysmudford
  • 538
  • 5
  • 16