jQuery hasParent plugin: check if the selected element has a defined parent element in the upward tree.
Simply call:
$('.child').hasParent('.parent');
Returns either true
or false
whether the parent exists or not.
:bulb: jQuery hasParent helper. Checks if the selected element has a defined parent element.
jQuery hasParent plugin: check if the selected element has a defined parent element in the upward tree.
Simply call:
$('.child').hasParent('.parent');
Returns either true
or false
whether the parent exists or not.
:bulb: jQuery hasParent helper. Checks if the selected element has a defined parent element.
MIT License