Using jQuery to see if a div has a child with a certain class December 1, 2022 by Tarik You can use the find function: if($('#popup').find('p.filled-text').length !== 0) // Do Stuff