Skip to content

Commit a77db7d

Browse files
committed
Merge pull request victorjonsson#299 from etcho/master
Confirmation validate now can compare with any element, not only inputs
2 parents 8dc0c72 + bae7a1a commit a77db7d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

form-validator/security.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
validatorFunction : function(value, $el, config, language, $form) {
4242
var conf = '',
4343
confInputName = $el.valAttr('confirm') || ($el.attr('name') + '_confirmation'),
44-
confInput = $form.find('input[name="' +confInputName+ '"]').eq(0);
44+
confInput = $form.find('[name="' +confInputName+ '"]').eq(0);
4545

4646
if (confInput) {
4747
conf = confInput.val();

0 commit comments

Comments
 (0)