Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Latest commit

 

History

History
42 lines (34 loc) · 964 Bytes

README.md

File metadata and controls

42 lines (34 loc) · 964 Bytes

multiple-email

Enter multiple email address using a single input field.

Example multiple email usage

Demo: https://adrianmejias.com/multiple-email

<!-- Include jQuery Beforehand -->
<link href="multiple-email.css" rel="stylesheet">
<script src="multiple-email.js"></script>
<input type="email">
$('input[type=email]').multipleEmail({
  attr: {
    size: 65,
    placeholder: 'Enter your email address followed by comma, space, tab or enter'
  }
});

Available options

  • populate: array Custom emails to be placed in email listing.
  • attr: array Custom attributes to be placed in cloned input field.
  • classes: string Custom classes to be placed in cloned input field.
  • complete: object Used as a fallback for server-side.
$('input[type=email]').multipleEmail({
  populate: [],
  attr: {},
  classes: null,
  complete: function (){}
});