readme.html 693 B

12345678910111213
  1. This is a known bug in jquery validator plugin. However, this has been fixed now in this pull request, and should be released soon.
  2. Fix 1:
  3. If you cannot wait for a release, the fix is to put this code at the start of delegate() method. The solution has been made by @svrx.
  4. // Set form expando on contenteditable
  5. if ( !this.form && this.hasAttribute( "contenteditable" ) ) {
  6. this.form = $( this ).closest( "form" )[ 0 ];
  7. }
  8. As you can see the fix is simply to set the form to the parent element.
  9. Fix 2:
  10. As @chrisAtomix said in his comments, don't use the latest jquery validator plugin. Instead use a lower version where contenteditable feature has not been added. He is using v1.14.0.