I have some layers like so
<div class="evenprop">some prop</div>
<div class="evenprop">some prop2</div>
<div class="evenprop">some prop3</div>
<h3 class="otherprop">Other Props</h3>
<div class="evenprop">some prop4</div>
<div class="evenprop">some prop5</div>
This is fine but I need to hide the "otherprop" class if the data looks like this
<div class="evenprop">some prop</div>
<div class="evenprop">some prop2</div>
<div class="evenprop">some prop3</div>
<div class="evenprop">some prop4</div>
<div class="evenprop">some prop5</div>
<h3 class="otherprop">Other Props</h3>
The layers are dynamically put in so not sure how to do this I somehow need to say if there is no data below the class"otherprop" then hide "otherprop" if that makes sense
The desired result if no data below is
<div class="evenprop">some prop</div>
<div class="evenprop">some prop2</div>
<div class="evenprop">some prop3</div>
<div class="evenprop">some prop4</div>
<div class="evenprop">some prop5</div>
but if there is data below
<div class="evenprop">some prop</div>
<div class="evenprop">some prop2</div>
<div class="evenprop">some prop4</div>
<div class="evenprop">some prop5</div>
<h3 class="otherprop">Other Props</h3>
<div class="evenprop">some prop3</div>
Many thanks
Jamie