-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved old accept method to extension additional-method, added new acc…
- Loading branch information
Showing
4 changed files
with
96 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> | ||
<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="../jquery.validate.js"></script> | ||
<script src="../additional-methods.js"></script> | ||
|
||
<script type="text/javascript"> | ||
$(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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters