I know how to use JQuery to iterate over the children of an xml element:
$(this).children('tag_name').each(function() {
});
Is there a convenient way to simply test if an element has any children? Something like this incorrect code:
$(this).hasChildren('tag_name') //returns true or false