Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including jquery.auto-attach-input-labels with all npm packages installed. Try it out:

require("jquery/package.json"); // jquery is a peer dependency. var jqueryAutoAttachInputLabels = require("jquery.auto-attach-input-labels")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

jquery.auto-attach-input-labels v0.1.2

Ever get sick of giving html check boxes and radio buttons ID attributes so that you can then attach a label to them that toggles them when it is clicked? This jquery plugin is for you. This will automatically take care of attaching labels to adjacent checkboxes / radios, and also assign unique ids to the checkboxes / radios (if they do not have one already.) Usage:

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free