An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Auto-Email
### An autocomplete JQuery plugin for email fields

![auto-email](https://github.com/chrisyuska/auto-email/raw/master/screenshot.png)

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)