Answers for "check if element has childs jquery"

0

check if element has childs jquery

if ( $('#myfav').children().length > 0 ) {
     // do something
}
Posted by: Guest on December-15-2020

Code answers related to "check if element has childs jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language