I'm currently exploring how to iterate through all parent classes (.grid) and if there is no child div with the class (.image-container), then to display the (.content-container) within the same (.grid) section.
HTML:
<style>
.grid .content-container {
display:none;
}
</style>
<div class="grid">
<div class="art">
<div class="image-container">
<img src="image url" />
</div>
</div>
<div class="title">Title Text</div>
<div class="content-container">Some Content Goes here</div>
</div>
<div class="grid">
<div class="art"></div>
<div class="title">Title Text</div>
<div class="content-container">Some Content Goes here</div>
</div>
<div class="grid">
<div class="art">
<div class="image-container">
<img src="image url" />
</div>
</div>
<div class="title">Title Text</div>
<div class="content-container">Some Content Goes here</div>
</div>
<div class="grid">
<div class="art">
<div class="image-container">
<img src="image url" />
</div>
</div>
<div class="title">Title Text</div>
<div class="content-container">Some Content Goes here</div>
</div>
<div class="grid">
<div class="art"></div>
<div class="title">Title Text</div>
<div class="content-container">Some Content Goes here</div>
</div>