Skip to content

Autocomplete domain name into user e-mail address

Notifications You must be signed in to change notification settings

Jahoda/email-hint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

EmailHint

Autocomplete domain part of e-mail after type any chars after @.

EmailHint

Usage

  1. Wrap HTML <input> element with:
<span class="emailHint">
  <input name="email">
  <span class="emailHint-hint"></span>
</span>
  1. Add CSS class selectors .emailHint-measure and .emailHint-hint to input declaration:
input,
.emailHint-measure,
.emailHint-hint {
  /* some styles */
}
  1. Link emailHint.js.

  2. Init with className and domains list:

EmailHint.init(
  "emailHint", // className
  [
    "gmail.com",
    /* … */
  ]
);

(http://jecas.cz/napovidani-emailu)

About

Autocomplete domain name into user e-mail address

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages