Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

a simple jquery plugin for placeholder use

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 js
Octocat-spinner-32 media
Octocat-spinner-32 MIT-LICENSE.txt
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 demo.html
Octocat-spinner-32 jquery.js
README.rdoc

jquery.placeholder

This is a simple jquery plugin for placeholder.

Example Usage

$(document).ready(function(){ $(“.holder”).placeholder({ message: “Your place holder here.” }); });

$(document).ready(function(){ $(“.holder”).placeholder({ message: “Your place holder here.” style: 'another_css_class' }); }); Your html: <h1>Test placeholder</h1> <input type=“text” name=“test” class=“holder”></input>

Or use the HTML5 placeholder attribute:

<input type="text" name="test" class="holder" placeholder="HTML5 is cool"></input>

Options: message: the holder text, default is “click to enter..” style: the css style for the placeholder, the default is 'placeholder'

Something went wrong with that request. Please try again.