Skip to content

thehappybit/jQuery-HTML5-placeholder-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

jQuery HTML5 placeholder plugin

The plugin adds cross-browser support for the HTML5 placeholder attribute functionality.

Usage

Please insert the following code inside your $(document).ready function:

$.placeholder();

Customization

The plugin comes with two customization options:

$.placeholder({
	'className': 'placeholder',
	'attrName': 'placeholder'
});
  • The className parameter lets you pick the class which is toggled on the input element that has the placeholder attribute specified.
  • The attrName parameter lets you choose which attribute to look for. For instance, you could make use of the placeholder functionality using an attribute different than placeholder, eg. data-placeholder.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •