A plugin to enable HTML5 input placeholder support in non-Webkit browsers.
Pull request Compare This branch is 4 commits ahead, 1 commit behind schustafa:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Right now the placeholder attribute is only supported by Webkit-based browsers, so I made a simple script to enable placeholder behavior in all the other browsers.

Just include the script and use it like so:

$(function() {

Optionally, you can pass it a hex color if you want something other than the default:

$(function() {

The plugin binds an event (submit.placeholder) to an input element’s form element to strip out the placeholder text on submit. You can remove it like so: