Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

A jQuery plugin to enable the HTML5 `placeholder` attribute in all browsers.

Notifications You must be signed in to change notification settings

jgarber623/jquery-placehold

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jquery-placehold

npm version

A jQuery plugin that enables the HTML5 placeholder attribute in browsers lacking native support.

Requirements

  • jQuery (1.11.2 or newer)
  • Firefox < 3.7, Safari < 4, Internet Explorer < 10

Usage

In your HTML:

<input placeholder="+1 (555) 555-5555">
<textarea placeholder="Four score and seven years ago…"></textarea>

In your JavaScript:

$().ready( function() {
	$('input, textarea').placehold('placeholderClassName');
});

placeholderClassName is an optional string and defaults to "placeholder."

License

The jQuery placehold plugin is licensed under the GNU General Public License, version 2.

About

A jQuery plugin to enable the HTML5 `placeholder` attribute in all browsers.

Resources

Stars

Watchers

Forks

Packages

No packages published