Answer the question
In order to leave comments, you need to log in
How to update detailview widget by pjax?
<?php Pjax::begin(); ?>
<?= DetailView::widget([
'model' => $model,
'attributes' => $columns
]);
?>
<?php Pjax::end(); ?>
$('button[id]').click(function(){
var x = $.ajax({
'url' : 'http://catalogmaterial/web/index.php?r=basematerial%2Fmodel&id='+{$_GET['id']}+'&material_id='+$(this).attr('id')
});
console.log(x);
})
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