FREE Web Template Download
HTML CSS JAVASCRIPT SQL PHP BOOTSTRAP JQUERY ANGULARJS TUTORIALS REFERENCES EXAMPLES Blog
 

Input Email multiple Property

Input Email Object Reference Input Email Object

Example

Find out if an email field accept multiple values/emails:

var x = document.getElementById("myEmail").multiple;

The result of x will be:

true
Try it Yourself »

Definition and Usage

The multiple property sets or returns whether an email field should accept multiple values/emails on form submission.

When set to true, it specifies that the user is allowed to enter more than one value/email in the email field.

This property reflects the HTML multiple attribute.

Tip: On submit, separate each email with a comma, like: mail@example.com, mail2@example.com, mail3@example.com in the email field.


Browser Support

Property
multiple Yes 10.0 Yes Yes Yes

Syntax

Return the multiple property:

emailObject.multiple

Set the multiple property:

emailObject.multiple=true|false

Property Values

Value Description
true|false Specifies whether an email field should accept multiple emails on form submission
  • true - The email field accept multiple emails
  • false - Default. The email field does not accept multiple emails

Technical Details

Return Value: A Boolean, returns true if the email field accept multiple emails, otherwise it returns false

More Examples

Example

Set an email field to allow multiple emails:

document.getElementById("myEmail").multiple = true;
Try it Yourself »

Related Pages

HTML reference: HTML <input> multiple attribute


Input Email Object Reference Input Email Object