Skip to content

Enables HTML5 placeholder labels to be displayed on older browsers

Notifications You must be signed in to change notification settings

fnordo/jquery.placeholder-label

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

JQuery.Placeholder-Label

This plugin enables the display of HTML5-style placeholder labels in older browsers.

The plugin will be auto-disabled when used in a modern browser that supports HTML5 placeholders.

Simple usage

$('input:text[placeholder]').placeholderLabel();

then set a CSS style such as

input.placeholder {
  color: #CCC;
  font-style: italic;
}

you can set an alternate css class:

$('input:text[placeholder]').placeholderLabel({placeholder_class: 'dull'});

Screenshot

Demo

JQuery.Placeholder-Label demo

Compatibility

Tested in the following browsers:

  • Internet Explorer 6, 7, 8

  • Firefox 3.x

  • Google Chrome 8, 9

  • Safari 5

About

Enables HTML5 placeholder labels to be displayed on older browsers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published