1.0.0 • Published 7 years ago

jquery-input-label v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

jquery-input-label

A simple plugin that fetches the assosiated label of an input, and vice versa.

$('#your-input').inputLabel(); // returns a jquery object of the label assosiated with this input/select/textarea;
$('#your-label').inputLabel(); // returns a jquery object of the input/select/textarea assosiated with this label;

This plugin assumes correct HTML markup, meaning labels either need to have a for attribute defined, or have their inputs be their children.