Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Javascript
how to check if a tag has any chidren
Dave
Programming language:
Javascript
2021-08-10 19:43:02
0
Q:
how to check if a tag has any chidren
Jill Johnson
Code:
Javascript
2021-06-11 02:02:15
tag.hasChildNodes()
1
Tags
check
how
Related
js check if dom element exists
javascript check if element has class
jquery check if attribute exists
how to check element has an attribute js
react if event.target is input
javascript check if dom element exists
js check for an attribute
New to Communities?
Join the community