Skip to content

jQuery plugin which finds the common parent of a set of elements

License

GPL-3.0, MIT licenses found

Licenses found

GPL-3.0
LICENSE-GPL
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

philipnrmn/jquery-commonparent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jquery-commonparent

jQuery plugin which finds the common parent of a set of elements.

Example

HTML:

<form>
  <label>Type something <input type="text" /></label>
  <input type="button" />
</form>

Javascript:

// Returns the form
$('input').commonParent();
// Returns the label
$('input[type=text]').commonParent();

About

jQuery plugin which finds the common parent of a set of elements

Resources

License

GPL-3.0, MIT licenses found

Licenses found

GPL-3.0
LICENSE-GPL
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published