Skip to content

mpestritto/jquery-input-hints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

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

2 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors