Skip to content

Commit

Permalink
Merge pull request victorjonsson#40 from stevewasiura/patch-8
Browse files Browse the repository at this point in the history
fn validate, errorSpan exists, append err msg to existing
  • Loading branch information
victorjonsson committed Jul 23, 2013
2 parents 59b3195 + 24ab886 commit 2726c44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion form-validator/jquery.form-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@
var $parent = $input.parent(),
$errorSpan = $parent.find('span[class='+config.errorMessageClass+']');
if ($errorSpan.length > 0) {
$errorSpan.text($input.valAttr('current-error'));
$errorSpan.append(', '+$input.valAttr('current-error'));
} else {
$parent.append('<span class="'+config.errorMessageClass+'">' + $input.valAttr('current-error') + '</span>');
}
Expand Down

0 comments on commit 2726c44

Please sign in to comment.