We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d65b237 commit 0fd656eCopy full SHA for 0fd656e
test/validator/submit_manually.htm
@@ -0,0 +1,21 @@
1
+<!DOCTYPE html>
2
+<script src="../js/jquery-1.4.2.min.js"></script>
3
+<script src="../../src/validator/validator.js"></script>
4
+
5
+<form action="http://google.com/search" style="margin:100px">
6
7
+ <label>
8
+ requred text
9
+ <input name="q" type="text" required="required" />
10
+ </label>
11
12
+ <a href="#" class="submit">Submit</a>
13
+</form>
14
15
+<script>
16
+$("form").validator({ position: 'top center'});
17
+$("a.submit").click(function(event) {
18
+ event.preventDefault();
19
+ $("form:first").submit();
20
+});
21
+</script>
0 commit comments