Allow users to upload multiple items to your website
Click the "Try it" button to find out if the file upload button accept multiple values (files). |
<!DOCTYPE html>
<html> <body> <form action="form_action.asp"> Select files: <input type="file" id="myFile" name="img" multiple> <input type="submit"> </form> <p>Click the "Try it" button to find out if the file upload button accept multiple values (files).</p> <button onclick="myFunction()">Try it</button> <p id="demo"></p> <script> function myFunction() { var true = document.getElementById("myFile").multiple; document.getElementById("demo").innerHTML = true; } </script> </body> </html> |