Skip to content

schustafa/jquery-placeholder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

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() {
  $('input').placeholder();
});

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

$(function() {
  $('input').placeholder('#777777');
});

About

A plugin to enable HTML5 input placeholder support in non-Webkit browsers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published