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

https://github.com/nuintun/mailtip

A jquery email autocomplete plugin
https://github.com/nuintun/mailtip

Last synced: 9 months ago
JSON representation

A jquery email autocomplete plugin

Awesome Lists containing this project

README

          

# Mailtip

>A jquery email autocomplete plugin

### Required
>jQuery >= 1.7

### Introduction
```js
$(function (){
var info = $('.info');

$('#mailtip').mailtip({
onselected: function (mail){
info.text('you choosed email: ' + mail)
}
});
});
```

### API
###### options
- *mails*
> The email domain list

- *width*
> The pupup tip's width, if set ```input``` the tip's width will equal input width else the width will equal set or auto

- *onselected*
> The callback on selected a email

- *offsetTop*
> The offset top relative default position

- *offsetLeft*
> The offset left relative default position

- *zIndex*
> z-index of popup tip

### Live Demo
[Click here see the live demo](https://nuintun.github.io/mailtip/mailtip.html)