Javascript examples for DOM HTML Element:Input FileUpload
Input FileUpload multiple Property - Allow the user to select multiple files:
<!DOCTYPE html> <html> <body> <form action="#"> Select files: <input type="file" id="myFile" name="files"> <input type="submit"> </form>//w w w. j ava 2 s .com <button onclick="myFunction()">Test</button> <p id="demo"></p> <script> function myFunction() { document.getElementById("myFile").multiple = true; document.getElementById("demo").innerHTML = "The file upload button now accept multiple values."; } </script> </body> </html>