Skip to content

Commit 1e05d73

Browse files
committed
Fix for issue victorjonsson#74
1 parent 9fecbe1 commit 1e05d73

10 files changed

+183
-171
lines changed

form-validator/date.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* @website http://formvalidator.net/#location-validators
1212
* @license Dual licensed under the MIT or GPL Version 2 licenses
13-
* @version 2.1.36
13+
* @version 2.1.38
1414
*/
1515
(function($) {
1616

form-validator/file.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* @website http://formvalidator.net/
1212
* @license Dual licensed under the MIT or GPL Version 2 licenses
13-
* @version 2.1.36
13+
* @version 2.1.38
1414
*/
1515
(function($, window) {
1616

form-validator/form-test.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@
9494
<input name="even numbers" class="form-control" name="test4" data-validation="even_number" />
9595
</div>
9696

97+
<div class="form-group">
98+
<label class="control-label">Text</label>
99+
(<span id="max-len">20</span> chars left)<br />
100+
<textarea id="text-area" name="some-text"></textarea>
101+
</div>
102+
97103
<div class="form-group">
98104
<label class="control-label">Server validation</label>
99105
<input class="form-control" name="code"
@@ -241,6 +247,8 @@
241247
});
242248
};
243249

250+
$('#text-area').restrictLength($('#max-len'));
251+
244252
window.applyValidation(true);
245253
window.applyValidation(false, '#form-b');
246254
window.applyValidation(true, '#form-c', 'element');

0 commit comments

Comments
 (0)