Find out if an email field accept multiple values/emails:
The result of x will be:
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.
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.
Return the multiple property:
Set the multiple property:
Value | Description |
---|---|
true|false |
Specifies whether an email field should accept multiple emails on form
submission
|
Return Value: | A Boolean, returns true if the email field accept multiple emails, otherwise it returns false |
---|
Set an email field to allow multiple emails:
HTML reference: HTML <input> multiple attribute