X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

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

Internet Explorer Firefox Opera Google Chrome Safari

The multiple property is supported in all major browsers.

Note: The <input type="email"> element is not supported in Internet Explorer 9 and earlier versions, or in Safari.


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

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook