Go back to the main page

Jquery plugin innerlabel

This article is over 2 years old. Proceed with caution.

Regards ♨ – Minimul

 

Better way to do innerlabel

This innerlabel plugin uses the data-* attribute, which I would argue is a good use case for it; although, this guy may not.

Demo

HTML


<input type="text" value="" data-label="click me" class="self-label" />

JS


$('.self-label').innerlabel();

// Two options: labelColor and focusColor i.e.
$('.self-label').innerlabel({ labelColor: '#ccc', focusColor: 'red' });

Download

Get it here.

Comment on this article?