All Projects → yongzhenlow → Email Autocomplete

yongzhenlow / Email Autocomplete

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

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Email Autocomplete

Selectpage
A simple style and powerful selector, including ajax remote data, autocomplete, pagination, tags, i18n and keyboard navigation features
Stars: ✭ 679 (+156.23%)
Mutual labels:  jquery-plugin, autocomplete, jquery
Amaranjs
Nice, sleek and stylish notifications.
Stars: ✭ 214 (-19.25%)
Mutual labels:  jquery-plugin, jquery
Jquery Aniview
A jQuery plugin that works in harmony with animate.css in order to enable animations only when content comes into view.
Stars: ✭ 205 (-22.64%)
Mutual labels:  jquery-plugin, jquery
Magnify
A lightweight jQuery magnifying glass zoom plugin.
Stars: ✭ 218 (-17.74%)
Mutual labels:  jquery-plugin, jquery
Calx.js
jQuery Calx - a jQuery plugin for creating formula-based calculation form
Stars: ✭ 190 (-28.3%)
Mutual labels:  jquery-plugin, jquery
Jquery Gantt
🌈 Lightweight jQuery gantt plugin.
Stars: ✭ 193 (-27.17%)
Mutual labels:  jquery-plugin, jquery
Percircle
⭕️ CSS percentage circle built with jQuery
Stars: ✭ 217 (-18.11%)
Mutual labels:  jquery-plugin, jquery
Jquery Contextmenu
jQuery contextMenu plugin & polyfill
Stars: ✭ 2,148 (+710.57%)
Mutual labels:  jquery-plugin, jquery
Liteaccordion
A lightweight horizontal accordion plugin for jQuery.
Stars: ✭ 234 (-11.7%)
Mutual labels:  jquery-plugin, jquery
Jquery Tablesort
A tiny & dead-simple jQuery plugin for sortable tables.
Stars: ✭ 254 (-4.15%)
Mutual labels:  jquery-plugin, jquery
Jquery Viewer
A jQuery plugin wrapper for Viewer.js.
Stars: ✭ 235 (-11.32%)
Mutual labels:  jquery-plugin, jquery
Tui.editor
🍞📝 Markdown WYSIWYG Editor. GFM Standard + Chart & UML Extensible.
Stars: ✭ 14,016 (+5189.06%)
Mutual labels:  jquery-plugin, jquery
Rangeslider.js
🎚 HTML5 input range slider element polyfill
Stars: ✭ 2,153 (+712.45%)
Mutual labels:  jquery-plugin, jquery
Hc Offcanvas Nav
JavaScript library for creating toggled off-canvas multi-level navigations, allowing endless nesting of submenu elements, supporting swipe gestures, keyboard interactions and ARIA attributes.
Stars: ✭ 201 (-24.15%)
Mutual labels:  jquery-plugin, jquery
Bs grid
Bootstrap Datagrid
Stars: ✭ 184 (-30.57%)
Mutual labels:  jquery-plugin, jquery
Bootstrap Checkbox
A checkbox component based on Bootstrap framework.
Stars: ✭ 214 (-19.25%)
Mutual labels:  jquery-plugin, jquery
Ziptastic Jquery Plugin
This is a jQuery plugin that shows how Ziptastic could be used.
Stars: ✭ 244 (-7.92%)
Mutual labels:  jquery-plugin, jquery
Bootstrap Input Spinner
A Bootstrap 4 / jQuery plugin to create input spinner elements for number input
Stars: ✭ 176 (-33.58%)
Mutual labels:  jquery-plugin, jquery
Jquery.redirect
jQuery Redirect Plugin
Stars: ✭ 182 (-31.32%)
Mutual labels:  jquery-plugin, jquery
Jquery Multiselect
Turn a multiselect list into a nice and easy to use list with checkboxes.
Stars: ✭ 221 (-16.6%)
Mutual labels:  jquery-plugin, jquery

jquery.email-autocomplete.js

A jQuery plugin that suggests and autocompletes the domain whenever your users type in an email address field.

Build Status CDNJS version

What does it do?

When your user types in "[email protected]", based on the first result from a list of predefined email domains.

diagram

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.

Installation

Bower

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 </body> tag.

<script src="jquery.min.js"></script>
<script src="jquery.email-autocomplete.min.js"></script>

You should also have a email input field.

<input id="email" name="email" type="email" />

Now, attach the plugin to the email input field.

<script>
$("#email").emailautocomplete({
  suggClass: "custom-classname",
  domains: ["example.com"]
});
</script>

Settings

Option Type Default Description
suggClass string 'eac-sugg' Classname for the suggestion text element.
domains array See list of domains below Array of domains used for autocompleting.

Styling

Use the following CSS to style the suggestion text color. Remember to update the classname if you've changed it to a custom one.

.eac-sugg {
  color: #ccc;
}

Domains

These are the plugin default domains if the domains option is not supplied.

  • gmail.com
  • googlemail.com
  • yahoo.com
  • yahoo.co.uk
  • hotmail.com
  • hotmail.co.uk
  • live.com
  • msn.com
  • comcast.net
  • sbcglobal.net
  • verizon.net
  • facebook.com
  • outlook.com
  • att.net
  • gmx.com
  • icloud.com
  • me.com
  • mac.com
  • aol.com

Author

  • Low Yong Zhen

Known Issues

  • On Android stock browser, if "Settings > Accessibility > Scale text up and down" value is not at 100%, the text width will be calculated incorrectly.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].