aboutsummaryrefslogtreecommitdiff
path: root/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/file_input.html
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/wqflask/static/new/packages/ValidationPlugin/demo/file_input.html')
-rw-r--r--wqflask/wqflask/static/new/packages/ValidationPlugin/demo/file_input.html47
1 files changed, 47 insertions, 0 deletions
diff --git a/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/file_input.html b/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/file_input.html
new file mode 100644
index 00000000..f92814da
--- /dev/null
+++ b/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/file_input.html
@@ -0,0 +1,47 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <title>jQuery validation plug-in - comment form example</title>
+ <link rel="stylesheet" href="css/screen.css">
+ <link rel="stylesheet" href="css/cmxform.css">
+ <script src="../lib/jquery.js"></script>
+ <script src="../dist/jquery.validate.js"></script>
+ <script src="../dist/additional-methods.js"></script>
+ <script>
+ $(document).ready(function() {
+ $("#fileForm").validate();
+ });
+ </script>
+</head>
+<body>
+<form class="cmxform" id="fileForm" method="post" action="">
+ <fieldset>
+ <legend>Select the indicated type of files?</legend>
+ <p>
+ <label for="file1">Select a plain text file (e.g. *.txt)</label>
+ <input type="file" id="file1" name="file1" class="required" accept="text/plain">
+ </p>
+ <p>
+ <label for="file2">Select any image file</label>
+ <input type="file" id="file2" name="file2" class="required" accept="image/*">
+ </p>
+ <p>
+ <label for="file3">Select either a PDF or a EPS file</label>
+ <input type="file" id="file3" name="file3" class="required" accept="image/x-eps,application/pdf">
+ </p>
+ <p>
+ <label for="file4">Select any audio or image file</label>
+ <input type="file" id="file4" name="file4" class="required" accept="image/*,audio/*">
+ </p>
+ <p>
+ <label for="file5">Select one or more plain text files (e.g. *.txt)</label>
+ <input type="file" id="file5" name="file5" class="required" multiple accept="text/plain">
+ </p>
+ <p>
+ <input class="submit" type="submit" value="Submit">
+ </p>
+ </fieldset>
+</form>
+</body>
+</html>