Easy to use and customize JavaScript demo that adds labels to your inputs if you use placeholders.
View the Project on GitHub ingojoseph/labelit.js
Type something to see what happens.