Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
jQuery Plugin Placeholder HTML5
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples jQuery.placeholder v1.5.0
README.md
jquery.placeholder.js
jquery.placeholder.min.js

README.md

jQuery.placeholder v1.5.0

What is this?

It's a plugin for jQuery that enables you to used the placeholders if your browser don't support it.

More info

http://www.yeikos.com/2011/07/jquery-placeholder.html

Features

Compatible with all browsers IE6+, Chrome, Firefox, Opera, Safari...
It's clean, effective and not intrusive
Input text/password and textarea are supported

Demo online

http://jsfiddle.net/yeikos/QaA7E/

Example

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
<script type="text/javascript" src="https://raw.github.com/yeikos/jquery.placeholder/master/jquery.placeholder.js"></script>

<script type="text/javascript">

    $(function() {

        $.placeholder();

    });

</script>

<input type="text" placeholder="Email" />
<input type="password" placeholder="Password" />
Something went wrong with that request. Please try again.