There is a view of a basket with goods.
When you click on delete goods, you need to update the same view with ajax (-a).
The problem is that this view gets into the ajax function, but it’s not clear where to insert it with the $('').html(); method $('').html();
public function actionDelItemApp($id) { return $this->render('view'); } Ajax:
$.ajax({ url: '/cart/del-item-app', type: 'GET', data: {id: id}, success: function (data) { if (!data) alert('PRODUCT NOT FOUND!'); $('НЕ ЗНАЮ КУДА ВСТАВЛЯТЬ').html(data); } }); }); Representation:div.section , etc.
All content of the div.section block div.section it gets to div.section .
And where to insert the result?