What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-15 18:04:04
check if element has specific child javascript
var hasChild = parentDiv.querySelector("#child2") != null; //The querySelector() method lets you search the subtree beneath the //starting element using the given CSS selector string. If the element is found, // its DOM node is returned. Add solution