Skip to content
A jQuery plugin to enable the HTML5 `placeholder` attribute in all browsers.
JavaScript HTML
Find file
Latest commit 8d8bba8 @jgarber623 Add badge to README.
Failed to load latest commit information.
dist Add version to preamble.
src Formatting changes.
.editorconfig Add .gitignore and .editorconfig files.
.gitignore Add .gitignore and .editorconfig files. Add badge to README.
bower.json Add Bower configuration.
index.html Update jQuery requirement to 1.11.2.
package.json Bump version to 1.0.1."


npm version

A jQuery plugin that enables the HTML5 placeholder attribute in browsers lacking native support.


  • jQuery (1.11.2 or newer)
  • Firefox < 3.7, Safari < 4, Internet Explorer < 10


In your HTML:

<input placeholder="+1 (555) 555-5555">
<textarea placeholder="Four score and seven years ago…"></textarea>

In your JavaScript:

$().ready( function() {
    $('input, textarea').placehold('placeholderClassName');

placeholderClassName is an optional string and defaults to "placeholder."


The jQuery placehold plugin is licensed under the GNU General Public License, version 2.

Something went wrong with that request. Please try again.