Skip to content

Commit f8dd7c2

Browse files
author
shankarThiyagaraajan
committed
- issues on length restriction, minimized.
1 parent 0413f98 commit f8dd7c2

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

src/demo/index3.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,15 @@
7373
<input type="text" required class="form-control" id="department" name="department"
7474
placeholder="Enter Department">
7575
</div>
76+
<br><br><br><br><br><br><br><br><br><br><br><br><br>
77+
<div>
78+
<label>Password</label>
79+
<input type="password" name="name5" data-check="repassword" id="password" required>
80+
</div>
81+
<div>
82+
<label>Re-Password</label>
83+
<input type="password" name="name6" data-parent="password" id="repassword" required>
84+
</div>
7685

7786
<br><br><br><br><br><br><br><br><br><br><br><br><br>
7887

@@ -94,7 +103,7 @@
94103
<button type="submit" name="btn-save" class="btn btn-default">Submit</button>
95104
</form>
96105
</div>
97-
<script src="./../js/multi_formValidator.es6.js"></script>
106+
<script src="./../js/multi_formValidator.js"></script>
98107

99108
<script>
100109

src/js/multi_formValidator.es6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ class jsFilter {
343343

344344
// Default values for Min and Max.
345345
if (!min) min = 1;
346-
if (!max) max = 31;
346+
if (!max) max = 100;
347347

348348
// Forming pattern for Restriction.
349349
let regex = new RegExp('^[0-9]+$');

src/js/multi_formValidator.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ function jsFilter() {
322322

323323
// Default values for Min and Max.
324324
if (!min) min = 1;
325-
if (!max) max = 31;
325+
if (!max) max = 100;
326326

327327
// Forming pattern for Restriction.
328328
var regex = new RegExp('^[0-9]+$');
@@ -780,7 +780,10 @@ function jsRuleSets() {
780780
var elem2 = document.getElementById(elem2_id);
781781
if (elem1.value === elem2.value) status = true;
782782
}
783-
//jsLogger.out('Compare Status', status);
783+
// Hardly remove the error message.
784+
// document.getElementById(elem1.name + __err_id_suffix_rand_hash).remove();
785+
// document.getElementById(elem2.name + __err_id_suffix_rand_hash).remove();
786+
784787
return status;
785788
};
786789
}

0 commit comments

Comments
 (0)