K
K
kanly2020-04-15 15:14:27
JavaScript
kanly, 2020-04-15 15:14:27

How to update part of a page using jquery in yii2?

Good afternoon! I want to update a part of the page, namely some block using jquery.

$(".del-item").click(function() {
    $(".korz-block").load("main.php .korz-block");
});


This code works without mvc files and i am using yii2, can i update in yii2 in layouts in main.php part of the code like this??? Or how to do it better, options or

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaliy K, 2020-04-15
@revenger

You can, you update the render result, i.e. html, no matter how it is formed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question