jquery element has child code example
Example 1: check if element has childs jquery
if ( $('#myfav').children().length > 0 ) {
// do something
}
Example 2: jquery get child div
$(this).children('div').show();
if ( $('#myfav').children().length > 0 ) {
// do something
}
$(this).children('div').show();