jquery - Why my form start be blocked after submit in yii2? -


i have got form. created of activeform class. blocked standard submit preventdefault(); method , aftervalidate form submit form ajax call:

$('#form').on('aftervalidate', function () {     var url = $('#form').attr('action');         var data = $('#form').serialize();         $.ajax({             type: "post",             url: url,             data: data         });  }); 

all works good. works first time. second submit not working other data. how can reset validation of form after every submit ajax?


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -