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
- Host: GitHub
- URL: https://github.com/nuintun/mailtip
- Owner: nuintun
- License: mit
- Created: 2013-01-06T02:43:09.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2017-04-21T02:11:47.000Z (about 9 years ago)
- Last Synced: 2023-04-05T13:38:03.418Z (about 3 years ago)
- Language: JavaScript
- Homepage: https://nuintun.github.io/mailtip
- Size: 685 KB
- Stars: 16
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)