Content-Length: 2892 | pFad | http://github.com/jquery-validation/jquery-validation/pull/637.diff
thub.com diff --git a/jquery.validate.js b/jquery.validate.js index 3c02627ab..bdf938366 100644 --- a/jquery.validate.js +++ b/jquery.validate.js @@ -1152,7 +1152,7 @@ $.extend($.validator, { equalTo: function( value, element, param ) { // bind to the blur event of the target in order to revalidate whenever the target field is updated // TODO find a way to bind the event just once, avoiding the unbind-rebind overhead - var target = $(param); + var target = $(param, element.form); if ( this.settings.onfocusout ) { target.unbind(".validate-equalTo").bind("blur.validate-equalTo", function() { $(element).valid(); diff --git a/test/index.html b/test/index.html index bb9fc4ad8..0c4aae0f6 100644 --- a/test/index.html +++ b/test/index.html @@ -108,6 +108,11 @@ + +Fetched URL: http://github.com/jquery-validation/jquery-validation/pull/637.diff
Alternative Proxies: