SyntaxFix
Write A Post
Hire A Developer
Questions
and if you want to check div has a perticular children(say <p> use:
<p>
if ($('#myfav').children('p').length > 0) { // do something }