valeriansaliou / jquery.hasparent

:bulb: jQuery hasParent helper. Checks if the selected element has a defined parent element.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jQuery hasParent

jQuery hasParent plugin: check if the selected element has a defined parent element in the upward tree.

Usage

Simply call:

$('.child').hasParent('.parent');

Returns either true or false whether the parent exists or not.

About

:bulb: jQuery hasParent helper. Checks if the selected element has a defined parent element.

License:MIT License


Languages

Language:JavaScript 100.0%