I need a solution to hide only those spans that are empty.
<div class="img-wrapper">
<div class="showcase-caption" style="display: block; "> <span id="MainContent_ImageCaption_0">This one has caption</span>
</div>
<div class="showcase-caption" style="display: block;"> <span id="MainContent_ImageCaption_1"></span>
</div>
<div class="showcase-caption" style="display: block;"> <span id="MainContent_ImageCaption_2">Another caption here</span>
</div>
<div class="showcase-caption" style="display: block;"> <span id="MainContent_ImageCaption_3"></span>
</div>
</div>