Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to check if the element exist in the parent element javascript

function checkParent(parent, child) {
    if (parent.contains(child))
        return true;
        return false;
}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #check #element #exist #parent #element #javascript
ADD COMMENT
Topic
Name
4+2 =