Answers for "jquery check if element has child"

0

check if element has childs jquery

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

jquery check if element has child

if ($('#example').find('#test').length) {
    // found!
}
Posted by: Guest on August-16-2021

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language