This simple plugin provides HTML 5 placeholder attribute to all browsers.
JavaScript
Pull request Compare This branch is 1 commit ahead of arian:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Demo
Source
README.md
package.yml
screenshot.png

README.md

MooTools-Placeholder

This simple plugin provides HTML 5 placeholder attribute to all browsers.

Screenshot

How to use

Just include placeholder.js or placehoder-min.js to your HTML:

#HTML
<script type="text/javascript" src="/js/placeholder-min.js"></script>
<form action="#">
    <input type="text" name="field" placeholder="Placeholder Text" />
</form>

And then initialize the MooPlaceholder

#JS
window.addEvent('domready', function(){
    MooPlaceholder();
}

Demo

http://jsfiddle.net/Sqa4u/

Thanks to

Thanks to Nikita Vasilyev for his genius solution: https://github.com/NV/placeholder.js