jquery: return true or false if the element is present in the DOM or not
Code Example - jquery: return true or false if the element is present in the DOM or not
var elm = $('.parent1');
if(elm.has('.child3')){
var child3 = elm.find('.child3');
}