<div id="example">
<div id="test"></div>
</div>
<div id="another">Blah</div>
I want to set $('#another').hide()
but only if #example
contains a child element called#test
, is this possible? It seems like it would be.
<div id="example">
<div id="test"></div>
</div>
<div id="another">Blah</div>
I want to set $('#another').hide()
but only if #example
contains a child element called#test
, is this possible? It seems like it would be.