Skip to content

Commit 4cc4570

Browse files
committed
Confirmation now can compare with any element
The confirmation validade only looked for input elements with the given name to compare, so selects or textares couldn't be compared. Now any the confirmation input can be any element with that name attribute.
1 parent 8dc0c72 commit 4cc4570

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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)