Javascript examples for DOM HTML Element:Input Email field
Input Email multiple Property - Set an email field to allow multiple emails:
<!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>