https://github.com/yongzhenlow/email-autocomplete
A jQuery plugin that suggests and autocompletes the domain in email fields.
https://github.com/yongzhenlow/email-autocomplete
autocomplete email-autocomplete javascript jquery jquery-plugin
Last synced: 6 months ago
JSON representation
A jQuery plugin that suggests and autocompletes the domain in email fields.
- Host: GitHub
- URL: https://github.com/yongzhenlow/email-autocomplete
- Owner: yongzhenlow
- License: mit
- Archived: true
- Created: 2014-01-17T06:30:33.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2020-08-25T04:13:02.000Z (over 5 years ago)
- Last Synced: 2024-08-04T09:06:41.750Z (over 1 year ago)
- Topics: autocomplete, email-autocomplete, javascript, jquery, jquery-plugin
- Language: JavaScript
- Homepage: http://yongzhenlow.github.io/email-autocomplete/demo/
- Size: 84 KB
- Stars: 274
- Watchers: 12
- Forks: 51
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jquery.email-autocomplete.js
> A jQuery plugin that suggests and autocompletes the domain whenever your users type in an email address field.
[](https://travis-ci.org/yongzhenlow/email-autocomplete)
[](https://cdnjs.com/libraries/email-autocomplete)
## What does it do?
When your user types in "user@gm", the plugin will suggest for e.g. "user@gmail.com", based on the first result from a list of predefined email domains.

Press the tab-key, or simply click on the suggestion to automatically fill in the rest of the domain. (or tap on the suggestion for mobile users.)
You can also use the right arrow key.
See a live demo [here](http://yongzhenlow.github.io/email-autocomplete/demo/).
## Installation
**Bower**
```sh
bower install email-autocomplete --save
```
**Download**
Download or clone this repo and copy `dist/jquery.email-autocomplete.min.js` into your javascripts directory.
## Usage (jQuery)
Add `jquery.email-autocomplete.min.js` into your HTML, before the closing `