Answers for "how to check if the element exist in the parent element javascript"

0

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

function checkParent(parent, child) {
    if (parent.contains(child))
        return true;
        return false;
}
Posted by: Guest on March-10-2022

Code answers related to "how to check if the element exist in the parent element javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language