hjg
2024-10-30 8cf23534166c07e711aac2a25911ada317ba01f0
提交 | 用户 | 时间
58d006 1 <!DOCTYPE html>
A 2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
5 <title>jQuery validation plug-in - comment form example</title>
6
7 <link rel="stylesheet" href="css/screen.css" />
8 <link rel="stylesheet" href="css/cmxform.css" />
9
10 <script src="../lib/jquery.js"></script>
11 <script src="../jquery.validate.js"></script>
12 <script src="../additional-methods.js"></script>
13
14 <script type="text/javascript">
15 $(document).ready(function() {
16     $("#fileForm").validate();
17 });
18 </script>
19
20 </head>
21 <body>
22
23 <form class="cmxform" id="fileForm" method="post" action="">
24     <fieldset>
25         <legend>Select the indicated type of files?</legend>
26         <p>
27             <label for="file1">Select a plain text file (e.g. *.txt)</label>
28             <input type="file" id="file1" name="file1" class="required" accept="text/plain" />
29         </p>
30         <p>
31             <label for="file2">Select any image file</label>
32             <input type="file" id="file2" name="file2" class="required" accept="image/*"/>
33         </p>
34         <p>
35             <label for="file3">Select either a PDF or a EPS file</label>
36             <input type="file" id="file3" name="file3" class="required" accept="image/x-eps,application/pdf"/>
37         </p>
38         <p>
39             <label for="file4">Select any audio or image file</label>
40             <input type="file" id="file4" name="file4" class="required" accept="image/*,audio/*"/>
41         </p>
42         <p>
43             <label for="file5">Select one or more plain text files (e.g. *.txt)</label>
44             <input type="file" id="file5" name="file5" class="required" multiple accept="text/plain" />
45         </p>
46         <p>
47             <input class="submit" type="submit" value="Submit"/>
48         </p>
49     </fieldset>
50 </form>
51
52 </body>
53 </html>