-
Notifications
You must be signed in to change notification settings - Fork 1
mpestritto/jquery-input-hints
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Matt Pestritto Hints automatically added to inputs To use: add class to input: input_use_hint add alt tag with hint text e.g. <input id="search" class="my_custom_input_search_class input_use_hint" type="text" value="" alt="My Hint Text"> make sure two classes are added to css input.input_hint { color: #888; } input.input_hint_active { color: #000; } Notes: works for text, password and email input types doesn't overwrite existing classes Inspiration taken from: http://www.drewnoakes.com/code/javascript/hintTextbox.html rewrite in jquery, addition of email input type, doesn't overwrite existing css classes
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published