Answer the question
In order to leave comments, you need to log in
How to remove validation scripts from renderAjax Yii2?
How to correctly display the form without scripts. they already exist or how to remove scripts when loading a form via Ajax, leaving ajax validation?
Getting the form via Ajax:
$('#msprofile').load('/shops', function(response){
$('.selectpicker').selectpicker();
$(me).parent().removeClass('active');
$(me).tab('show');
});
if(Yii::$app->request->isAjax){
$model = new Shops();
$model->load(Yii::$app->request->post());
return $this->renderAjax('_msprofile.php', compact('model'));
}
return $this->render('shops');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question