Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Makes the html5 input placeholder attribute work in all browsers

branch: master

This branch is 0 commits ahead and 0 commits behind master

Merge pull request #13 from billsuxx/master

YUI Compressor fix - float is a reserved word
latest commit a113927ea6
Philip Arndt authored
Octocat-spinner-32 jquery.html5-placeholder-shim.js border-box support February 24, 2014
Octocat-spinner-32 readme.md Fixed a small typo July 18, 2013
Octocat-spinner-32 test.html Removing any text inputs from the DOM after this code applied placeho… April 10, 2013
readme.md

HTML5 Placeholder support for non compliant browsers using jQuery.

This plugin adds support for the placeholder attribute in HTML5 form elements to browsers that don't natively support it.

Usage:

Just include the jquery.html-placeholder-shim.js script into your document head like so:

<head>
  <script type='text/javascript' src='jquery.js'></script>
  <script type='text/javascript' src='jquery.html5-placeholder-shim.js'></script>
</head>

The script will automatically execute itself on the $(document).ready event and can be re-executed at any time (for example, to add placeholders to text boxes created during dynamic changes to the page) by running $.placeholder.shim();.

HTML5 placeholder Example:

<input type="search" placeholder="search the internets" name="query" />

License:

Dual licensed under the MIT and GPL licenses.

Something went wrong with that request. Please try again.