Simple jQuery Autocomplete for Email

To create HTML form more user-friendly and mobile user friendly, we suggest using jQuery Autocomplete for the email feature. Using this email input field suggest email domain automatically from list of predefined domain names.

For example, when the user enters the first letter of domain “@f” for “@facebook”, then automatically @facebook domain will display in suggestion. Pressing the tab-key or Click on its email domain selected. You can define the number of domains in the script code.

jquery email autocomplete

JQuery Autocomplete Email on your Web Forms

Let’s explain to you how you can implement jQuery Autocomplete for email in Html.

1) First, write code for HTML to input an email. Add the latest jquery.min.js script link it this page. Here is the code example.

2) Now write jQuery autocomplete email script code to initialize the plugin and set the domain value. Save this file with the name of “jquery.email-autocomplete.js”. Must add this file in HTML form code.

This plugin already has some predefined domain names. Here is the name:

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

You can add your domain in the JavaScript page code.

You May Also Like:

Simple jQuery Barcode Generator Example
Credit Card Number Validation Using jQuery
jQuery Interactive Parallax Effect for Background Layers

You can change the display format of autocomplete email text by adding some CSS attributes like that. ‘eac-sugg’ is a predefined css attribute to show suggested text.

By using this way you can easily implement jQuery autocomplete email feature on your website form. This will make your form more impressive and user friendly. If you find this post useful, please share it with others. Thanks

View live demo and Free source code also available to Download.

Download   |   DEMO

Recommended Posts For You

About Harish

I am professional web developer and blogger. Use this blog to share own api and other web development experience with you. I do accept paid work. Write to me at - [email protected]

View all posts by Harish

Leave a Comment

Your email address will not be published. Required fields are marked *