We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcff73a commit c292781Copy full SHA for c292781
jquery.validate.js
@@ -1152,7 +1152,7 @@ $.extend($.validator, {
1152
equalTo: function( value, element, param ) {
1153
// bind to the blur event of the target in order to revalidate whenever the target field is updated
1154
// TODO find a way to bind the event just once, avoiding the unbind-rebind overhead
1155
- var target = $(param);
+ var target = $(param, element.form);
1156
if ( this.settings.onfocusout ) {
1157
target.unbind(".validate-equalTo").bind("blur.validate-equalTo", function() {
1158
$(element).valid();
0 commit comments