MooTools based class which layers labels on top of inputs.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Ghost.class.js
Ghost.css
README.md
example.html

README.md

JS-Ghost

JS-Ghost contains a MooTools based class and a CSS file for styling. It's primary function is to layer labels over inputs for intuitive, real-estate conscious input labels.

With a brute-simple instantiation, this class doesn't require much tweaking (of which can be done entirely through an additional CSS file to maintain the codebase).

A "ghost" value is retrieved, by default, from the input's title attribute.

Instantiation Example

(new Ghost($('input')));

Yup! That's it :)
For a real-life example, check out example.html.