Skip to content

Commit 2726c44

Browse files
committed
Merge pull request victorjonsson#40 from stevewasiura/patch-8
fn validate, errorSpan exists, append err msg to existing
2 parents 59b3195 + 24ab886 commit 2726c44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

form-validator/jquery.form-validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@
310310
var $parent = $input.parent(),
311311
$errorSpan = $parent.find('span[class='+config.errorMessageClass+']');
312312
if ($errorSpan.length > 0) {
313-
$errorSpan.text($input.valAttr('current-error'));
313+
$errorSpan.append(', '+$input.valAttr('current-error'));
314314
} else {
315315
$parent.append('<span class="'+config.errorMessageClass+'">' + $input.valAttr('current-error') + '</span>');
316316
}

0 commit comments

Comments
 (0)