YouTip LogoYouTip

Prop Email Multiple

## Input Email `multiple` Property The `multiple` property of the Input Email object is used to set or return whether an email input field can accept multiple email addresses. When set to `true`, the user is allowed to enter more than one email address in the input field. This property directly reflects the HTML `multiple` attribute. > **Tip:** When submitting a form with multiple email addresses, the addresses must be separated by commas (e.g., `user1@example.com, user2@example.com, user3@example.com`). --- ## Syntax ### Return the `multiple` property: ```javascript emailObject.multiple ``` ### Set the `multiple` property: ```javascript emailObject.multiple = true | false ``` --- ## Property Values | Value | Description | | :--- | :--- | | `true` | The email field accepts multiple email addresses separated by commas. | | `false` | Default. The email field accepts only a single email address. | --- ## Technical Details | Detail | Description | | :--- | :--- | | **Return Value** | A **Boolean** value: `true` if the email field allows multiple values, otherwise `false`. | | **DOM Version** | HTML DOM Level 5 | --- ## Browser Support The `multiple` property is supported by all major modern browsers: * Google Chrome * Mozilla Firefox * Microsoft Edge / Internet Explorer 10+ * Safari * Opera > **Note:** Internet Explorer 9 (and earlier versions) and older versions of Safari do not support the `` element. --- ## Code Examples ### Example 1: Check if an Email Field Accepts Multiple Values The following example checks whether the email input field is configured to accept multiple email addresses: ```html

Click the button to check if the email field accepts multiple email addresses.

``` ### Example 2: Dynamically Enable Multiple Email Inputs The following example dynamically enables the input field to accept multiple email addresses when a button is clicked: ```html

Click the button to allow the email field to accept multiple email addresses.

``` --- ## Related Pages * HTML Reference: [HTML <input> multiple Attribute](https://www.w3schools.com/tags/att_input_multiple.asp) * JavaScript Reference: (dom-obj-email.html)
← Prop Email PatternProp Email Defaultvalue β†’