Input Email multiple Property
Example
Find out if an email field accept multiple values/emails:
var x =
document.getElementById("myEmail").multiple;
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
|
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