Skip to content

Commit 1c0a140

Browse files
committed
Fixed jquery-validation#184 - resetForm: should unset lastElement
1 parent d3f9b46 commit 1c0a140

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* Added 'pattern' to additional-methods to validate against arbitraty regular expressions.
1111
* Improved email method to not allow the dot at the end (valid by RFC, but unwanted here). Fixes #143
1212
* Fixed swedish and norwedian translations, min/max messages got switched. Fixes #181
13+
* Fixed #184 - resetForm: should unset lastElement
1314

1415
1.8.1
1516
---

jquery.validate.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ $.extend($.validator, {
394394
if ( $.fn.resetForm )
395395
$( this.currentForm ).resetForm();
396396
this.submitted = {};
397+
this.lastElement = null;
397398
this.prepareForm();
398399
this.hideErrors();
399400
this.elements().removeClass( this.settings.errorClass );

0 commit comments

Comments
 (0)