check if child elemnt exits in elemnt in jquery code example
Example: check if element has childs jquery
if ( $('#myfav').children().length > 0 ) {
// do something
}
if ( $('#myfav').children().length > 0 ) {
// do something
}