Skip to content

jyore/Simple-Placeholder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

This plugin is designed to give a placeholder to text edit boxes. This placeholder will change colors when the user focuses/unfocuses the placeholder. If the user inputs any character, then the placeholder disappears and the key press registers as normal. If the user leaves the edit box blank, then the placeholder is restored. The user inputted text will not change colors.


Full documentation and examples available at: http://jyore.com/opensource/jquery/simple-placeholder

Distributed under the MIT License (See License File).

Code Example:

HTML Markup
    <div id="placeholder"></div>
    <input id="placeholder2"> 

CSS
    .input-placeholder {...} 

JavaScript
    $('.selector').placeholder();

About

A Simple Placeholder Plugin for jQuery

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published