Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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: about 1 month ago
JSON representation

A jQuery plugin that suggests and autocompletes the domain in email fields.

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.

[![Build Status](https://travis-ci.org/yongzhenlow/email-autocomplete.svg?branch=master)](https://travis-ci.org/yongzhenlow/email-autocomplete)
[![CDNJS version](https://img.shields.io/cdnjs/v/email-autocomplete.svg)](https://cdnjs.com/libraries/email-autocomplete)

## What does it do?

When your user types in "user@gm", the plugin will suggest for e.g. "[email protected]", based on the first result from a list of predefined email domains.

![diagram](https://raw.github.com/yongzhenlow/email-autocomplete/master/doc_assets/example.png)

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 `