Input Email multiple Property - Set an email field to allow multiple emails: - Javascript DOM HTML Element

Javascript examples for DOM HTML Element:Input Email field

Description

Input Email multiple Property - Set an email field to allow multiple emails:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<form action="#">
  E-mail: <input type="email" id="myEmail" name="usremail">
  <input type="submit">
</form>/*from w ww.  j  a  v  a 2 s  .  com*/

<button onclick="myFunction()">Test</button>

<p id="demo"></p>

<script>
function myFunction() {
    document.getElementById("myEmail").multiple = true;
    document.getElementById("demo").innerHTML = "The email field now accept multiple values.";
}
</script>
</body>
</html>

Related Tutorials