Skip to content

Enables HTML5 placeholder labels to be displayed on older browsers

Notifications You must be signed in to change notification settings

opalesurfcasting/jquery.placeholder-label

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 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, 9

  • Firefox 3+

  • Google Chrome 8+

  • Safari 5+

License

Copyright 2012 Able Technology Consulting Ltd.

Licensed under the GNU LESSER GENERAL PUBLIC LICENSE (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

www.gnu.org/copyleft/lesser.html

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Enables HTML5 placeholder labels to be displayed on older browsers

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 50.2%
  • HTML 49.8%