<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.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…