|
13 | 13 | </script>
|
14 | 14 | <script>
|
15 | 15 | //$.validationEngine.defaults.scroll = false;
|
16 |
| - |
| 16 | + |
17 | 17 |
|
18 | 18 | jQuery(document).ready(function(){
|
19 | 19 | // binds form submission and fields to the validation engine
|
20 | 20 | jQuery("#formID").validationEngine('attach');
|
21 | 21 | //jQuery("#formID").validationEngine('attach',{ isOverflown: true });
|
22 | 22 | //jQuery("#formID").validationEngine('attach',{ relative: true });
|
23 | 23 | });
|
24 |
| - |
| 24 | + |
25 | 25 | /**
|
26 | 26 | *
|
27 | 27 | * @param {jqObject} the field where the validation applies
|
|
68 | 68 | | <a href="#" onclick="changeposition('bottomLeft')">BottomLeft</a>
|
69 | 69 | | <a href="#" onclick="changeposition('centerRight')">CenterRight</a>
|
70 | 70 | | <a href="#" onclick="changeposition('centerLeft')">CenterLeft</a>
|
71 |
| - <br> |
| 71 | + | <a href="#" onclick="changeposition('inline')">Inline</a> |
| 72 | + <br> |
72 | 73 | <a href="#" style="float:left" onclick="jQuery('body').attr('dir','ltr')">Left to Right</a>
|
73 | 74 | <a href="#" style="float:right" onclick="jQuery('body').attr('dir','rtl')">Right to Left</a>
|
74 | 75 | <br> <a href="../index.html" >Back to index</a>
|
|
79 | 80 | </p>
|
80 | 81 | <div style="height:500px;overflow-y:scroll;">
|
81 | 82 | <div style="height:1000px;">
|
82 |
| - <form id="formID" class="formular" method="post" action="" style="position:relative;"> |
| 83 | + <form id="formID" class="formular" method="post" action="" style="position:relative; width: 500px;"> |
83 | 84 | <fieldset>
|
84 | 85 | <legend>
|
85 |
| - |
| 86 | + |
86 | 87 | </legend>
|
87 | 88 | <label>
|
88 |
| - Field is required : |
89 |
| - |
| 89 | + Field is required : |
| 90 | + |
90 | 91 | </label>
|
91 | 92 | <input value="" class="validate[required] text-input" type="text" name="req" id="req" />
|
92 | 93 | <label>Favorite sport 1:</label>
|
|
96 | 97 | <option value="option2">Football</option>
|
97 | 98 | <option value="option3">Golf</option>
|
98 | 99 | </select>
|
99 |
| - |
| 100 | + |
100 | 101 | <label>Favorite sport 2:</label>
|
101 | 102 | <select name="sport2" id="sport2" multiple class="validate[required]">
|
102 | 103 | <option value="">Choose a sport</option>
|
103 |
| - <option value="option1"><l i>Tennis</li></option> |
| 104 | + <option value="option1">Tennis</option> |
104 | 105 | <option value="option2">Football</option>
|
105 | 106 | <option value="option3">Golf</option>
|
106 | 107 | </select>
|
107 |
| - |
| 108 | + |
108 | 109 | <label>Additional info:</label>
|
109 | 110 | <textarea class="validate[required]" id="add" style="width:250px;height:50px;"></textarea>
|
110 |
| - |
| 111 | + |
111 | 112 | <label>Radio Group: </label>
|
112 |
| - <div>radio 1: |
| 113 | + <div>radio 1: |
113 | 114 | <input class="validate[required] radio" type="radio" name="group0" id="radio1" value="5"/></div>
|
114 |
| - <div>radio 2: |
| 115 | + <div>radio 2: |
115 | 116 | <input class="validate[required] radio" type="radio" name="group0" id="radio2" value="3"/></div>
|
116 |
| - <div>radio 3: |
| 117 | + <div>radio 3: |
117 | 118 | <input class="validate[required] radio" type="radio" name="group0" id="radio3" value="9"/></div>
|
118 |
| - |
| 119 | + |
119 | 120 | <label>I accept terms of use : </label>
|
120 | 121 | <input class="validate[required] checkbox" type="checkbox" id="agree" name="agree"/>
|
121 |
| - |
122 |
| - |
| 122 | + |
| 123 | + |
123 | 124 | </fieldset>
|
124 | 125 |
|
125 | 126 | <input class="submit" type="submit" value="Validate & Send the form!"/><hr/>
|
|
0 commit comments