mercredi 24 octobre 2018

Bootstrap validator shouldn't submit form if checkbox was unchecked by jquery

I use bootstrap validator and it works perfect except 1 part. I have multiple inputs and checkboxes and 1 main checkbox which is "terms acception". I set up this checkbox if "terms acception" checkbox is checked and any checkboxes are changed just unchecked this checkbox and ask for check it by using same bootstrap validator. Now if I check it once and uncheck it by jquery $( "#term_btn" ).prop( "checked", false ); it submit form, which is worng.

I tried to use button status, input require by value and so on... but validator works only if i type something into input or check and uncheck term button by my own.




Aucun commentaire:

Enregistrer un commentaire