jquery-input-label

1.0.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i jquery-input-label

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • panda_madness