DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
check if an HTML element has any children
if (element.hasChildNodes()) { // It has at least one }
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#check
#HTML
#element
#children
ADD COMMENT
Topic
COMMENT
Name
1+8 =
Submit