Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
This simple plugin provides HTML 5 placeholder attribute to all browsers.
JavaScript
branch: master

This branch is 1 commit ahead of arian:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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

Something went wrong with that request. Please try again.