question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

parsley('destroy') does not disable validation

See original GitHub issue

As a simple test I’ve got

$('#form_id').parsley();
$('#form_id').parsley('destroy');

yet the validation is not skipped.

Running version 2.0.0-rc3

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
siva2507commented, Jan 4, 2019

In this case not working … $(“form[name=rateform-4-1]”).parsley().destroy();

0reactions
mcbmcb0commented, Apr 16, 2014

Yes that’s fixed it. working as described for me. Thanks very much - awesome work

On 17/04/2014 8:35 a.m., Guillaume Potier wrote:

Hi,

Thanks a lot for your fiddle. You were right there were a remaining event problem that rebinded fields. It should be fixed in latest |master| commit. If you could have a look and tell me if it fixes your problem that would be great!

Best

— Reply to this email directly or view it on GitHub https://github.com/guillaumepotier/Parsley.js/issues/555#issuecomment-40648716.

Read more comments on GitHub >

github_iconTop Results From Across the Web

parsley.js - how to disable validation for a field
You can deactivate parsley validation, remove the required attribute for the element that you want to disable validation for, and then ...
Read more >
Parsley - The ultimate documentation
A field is by default not validated if it is not required and empty. By adding data-parsley-validate-if-empty , validation will be done even...
Read more >
Parsley.js Documentation & API - GitHub Pages
Parsley is a dead simple javascript form validation, powerful and UX aware.
Read more >
Parsley - The ultimate documentation
A field is by default not validated if it is not required and empty. By adding data-parsley-validate-if-empty , validation will be done even...
Read more >
Parsley.js cheatsheet
parsleyjs is the Parsley form validator. ('parsley' is a different package) ... not preferred --> ... Enable/disable error messages uiEnabled: true
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found