Skip to content
Browse files

Fixed #184 - resetForm: should unset lastElement

  • Loading branch information...
1 parent d3f9b46 commit 1c0a1408f7ad469ffe5fb8e99b999dc8b1e6eeb0 @jzaefferer jzaefferer committed Sep 11, 2011
Showing with 2 additions and 0 deletions.
  1. +1 −0 changelog.txt
  2. +1 −0 jquery.validate.js
View
1 changelog.txt
@@ -10,6 +10,7 @@
* Added 'pattern' to additional-methods to validate against arbitraty regular expressions.
* Improved email method to not allow the dot at the end (valid by RFC, but unwanted here). Fixes #143
* Fixed swedish and norwedian translations, min/max messages got switched. Fixes #181
+* Fixed #184 - resetForm: should unset lastElement
1.8.1
---
View
1 jquery.validate.js
@@ -394,6 +394,7 @@ $.extend($.validator, {
if ( $.fn.resetForm )
$( this.currentForm ).resetForm();
this.submitted = {};
+ this.lastElement = null;
this.prepareForm();
this.hideErrors();
this.elements().removeClass( this.settings.errorClass );

0 comments on commit 1c0a140

Please sign in to comment.
Something went wrong with that request. Please try again.