Skip to content

Commit 7f83154

Browse files
committed
append default text-align(left) to formError, fix some typo on Demo
1 parent 8b0f310 commit 7f83154

File tree

2 files changed

+20
-18
lines changed

2 files changed

+20
-18
lines changed

css/validationEngine.jquery.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
.formError { z-index: 990; }
66
.formError .formErrorContent { z-index: 991; }
77
.formError .formErrorArrow { z-index: 996; }
8-
8+
99
.ui-dialog .formError { z-index: 5000; }
1010
.ui-dialog .formError .formErrorContent { z-index: 5001; }
1111
.ui-dialog .formError .formErrorArrow { z-index: 5006; }
@@ -24,6 +24,7 @@
2424
left: 300px;
2525
display: block;
2626
cursor: pointer;
27+
text-align: left;
2728
}
2829

2930
.formError.inline {

demos/demoPositioning.html

+18-17
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
</script>
1414
<script>
1515
//$.validationEngine.defaults.scroll = false;
16-
16+
1717

1818
jQuery(document).ready(function(){
1919
// binds form submission and fields to the validation engine
2020
jQuery("#formID").validationEngine('attach');
2121
//jQuery("#formID").validationEngine('attach',{ isOverflown: true });
2222
//jQuery("#formID").validationEngine('attach',{ relative: true });
2323
});
24-
24+
2525
/**
2626
*
2727
* @param {jqObject} the field where the validation applies
@@ -68,7 +68,8 @@
6868
| <a href="#" onclick="changeposition('bottomLeft')">BottomLeft</a>
6969
| <a href="#" onclick="changeposition('centerRight')">CenterRight</a>
7070
| <a href="#" onclick="changeposition('centerLeft')">CenterLeft</a>
71-
<br>
71+
| <a href="#" onclick="changeposition('inline')">Inline</a>
72+
<br>
7273
<a href="#" style="float:left" onclick="jQuery('body').attr('dir','ltr')">Left to Right</a>
7374
<a href="#" style="float:right" onclick="jQuery('body').attr('dir','rtl')">Right to Left</a>
7475
<br> <a href="../index.html" >Back to index</a>
@@ -79,14 +80,14 @@
7980
</p>
8081
<div style="height:500px;overflow-y:scroll;">
8182
<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;">
8384
<fieldset>
8485
<legend>
85-
86+
8687
</legend>
8788
<label>
88-
Field is required :
89-
89+
Field is required :
90+
9091
</label>
9192
<input value="" class="validate[required] text-input" type="text" name="req" id="req" />
9293
<label>Favorite sport 1:</label>
@@ -96,30 +97,30 @@
9697
<option value="option2">Football</option>
9798
<option value="option3">Golf</option>
9899
</select>
99-
100+
100101
<label>Favorite sport 2:</label>
101102
<select name="sport2" id="sport2" multiple class="validate[required]">
102103
<option value="">Choose a sport</option>
103-
<option value="option1"><l i>Tennis</li></option>
104+
<option value="option1">Tennis</option>
104105
<option value="option2">Football</option>
105106
<option value="option3">Golf</option>
106107
</select>
107-
108+
108109
<label>Additional info:</label>
109110
<textarea class="validate[required]" id="add" style="width:250px;height:50px;"></textarea>
110-
111+
111112
<label>Radio Group: </label>
112-
<div>radio 1:
113+
<div>radio 1:
113114
<input class="validate[required] radio" type="radio" name="group0" id="radio1" value="5"/></div>
114-
<div>radio 2:
115+
<div>radio 2:
115116
<input class="validate[required] radio" type="radio" name="group0" id="radio2" value="3"/></div>
116-
<div>radio 3:
117+
<div>radio 3:
117118
<input class="validate[required] radio" type="radio" name="group0" id="radio3" value="9"/></div>
118-
119+
119120
<label>I accept terms of use : </label>
120121
<input class="validate[required] checkbox" type="checkbox" id="agree" name="agree"/>
121-
122-
122+
123+
123124
</fieldset>
124125

125126
<input class="submit" type="submit" value="Validate &amp; Send the form!"/><hr/>

0 commit comments

Comments
 (0)