Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery: return true or false if the element is present in the DOM or not

var $collection = $(".parent2").find(".child3").length;
if ($collection.length)....
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #return #true #false #element #present #DOM
ADD COMMENT
Topic
Name
5+1 =