Latest web development tutorials

HTML DOM Input Email multiple properties

Input Email Object Reference Input Email Object

Examples

See if the email field can receive a plurality of values:

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

x The output is:

true

try it"


Definitions and use

multiple property sets or returns whether the field in the form of email to receive all values ​​(email address).

Single set to true, allows user to enter multiple values ​​in the email field.

This property reflects the HTML multiple attributes.

Tip: When you submit the form, use a comma to separate multiple mailboxes, such as: [email protected], [email protected], [email protected].


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support multiple attributes.

Note: Internet Explorer 9 and earlier versions of IE, Safari browser does not support <input type = "email"> element.


grammar

Returns multiple properties:

emailObject .multiple

Setting multiple properties:

emailObject .multiple = true | false

Property Value

value description
true | false Specifies whether the form field can enter multiple email mailboxes submission
  • true - email field to enter more than one e-mail address
  • false - default. email field can not enter more than one e-mail address

technical details

return value: Boolean value that, if the email field allows you to enter multiple values ​​returns true otherwise false.


More examples

Examples

Setting email field allows you to enter more than one e-mail address:

document.getElementById ( "myEmail") .multiple = true;

try it"


Related Pages

HTML Reference Manual: HTML <the INPUT> Multiple Properties


Input Email Object Reference Input Email Object