check if ement has a child li jquery code example Example: jquery is child of if($(target).parents('.wrapper').length > 0) { //do something... }