https://github.com/btholt/auto-email
Autocomplete JQuery plugin for email fields
https://github.com/btholt/auto-email
Last synced: 7 months ago
JSON representation
Autocomplete JQuery plugin for email fields
- Host: GitHub
- URL: https://github.com/btholt/auto-email
- Owner: btholt
- License: mit
- Fork: true (chrisyuska/auto-email)
- Created: 2013-10-09T18:18:58.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-10-28T00:19:12.000Z (over 12 years ago)
- Last Synced: 2025-09-16T11:04:24.649Z (10 months ago)
- Language: JavaScript
- Homepage:
- Size: 114 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License.md
Awesome Lists containing this project
README
# Auto-Email
### An autocomplete JQuery plugin for email fields

This plugin autocompletes email addresses when supplied with an email domain. Instead of the regular JQuery autocomplete's dropdown menu of autocomplete suggestions, this types ahead while keeping the auto-filled text highlighted as to not obstruct the user.
## To use this plugin, download the file and on pageload, call:
```javascript
$('#your-field').autoEmail(["gmail.com", "yahoo.com", "aol.com", "ymail.com", "anything.com"]);
```
The library will give preference to the entry that comes first in the array. IE btholt@y will autocomplete to yahoo.com first, but after typing ym will autocomplete to ymail.com.
## Credits
- Original created by [@chrisyuska](https://github.com/chrisyuska)
- Forked and maintained by [@btholt](https://github.com/btholt)