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

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -