Giter VIP home page Giter VIP logo

inputlabel's Introduction

#inputLabel 2.2#

Copyright (c) 2011 Alex Dickson

Releases 2010-02-16.

Licensed under the MIT licenses.

http://www.alexanderdickson.com

##Overview##

An easy cross browser compatible way to have labels contained in their inputs.

##Usage##

$('form input#email').inputLabel();

##Options##

###Custom label###

You may change the label to be different to the label's text. If no label is present, one is created.

$('input').inputLabel({
   customLabel: 'Email'
});

As of 1.2, you can also pass in the custom label as the first argument to the plugin.

$('input').inputLabel('Email');

###Set title attribute to label###

If true, then the input's title attribute will be set to the label's text. It will not overwrite existing attributes. Defaults to true.

$('input').inputLabel({
   addTitleAtt: false
});

###Custom classes###

Allows you control of the classes added to the elements required. The defaults are listed below in the example code.

$('input').inputLabel({
        // Added to all labels processed
        labelClass: 'input-label',
        // Added to input elements that have been processed
        labeledClass: 'input-labeled',
        // Added to the wrapper element that contains the input and label
        wrapperClass: 'input-wrapper'
});

inputlabel's People

Contributors

alexanderdickson avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.