Jquery plugin innerlabel
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.
- Pushed on 09/22/2011 by Christian