Home > inlinelabeler

inlinelabeler

Inlinelabeler is a project mainly written in JavaScript, it's free.

A jQuery plugin that moves labels inside your input elements

/* ------------------------------------------------------------------- inlineLabeler ------------------------------------------------------------------- @ver 0.1 @author Brendan Abbott ([email protected]) ------------------------------------------------------------------- Inserts a chosen selector as the default value of an input element. The value hides on focus and if no text is entered, reappears on blur. By default the value is pulled from the corresponding input label using the for attribute. The label is then hidden. ------------------------------------------------------------------- Example Use ------------------------------------------------------------------- $('input.name).inlineLabeler(); $('input.name).inlineLabeler({ hideLabel: false, labelSelector: 'legend' }); ------------------------------------------------------------------- Settings ------------------------------------------------------------------- hideLabel @default true @param bool labelSelector @default $(this).parent() .find('label[for=' + $(this).attr('id') + ']') @param selector * ------------------------------------------------------------------- /

Previous:tweetme