M
M
McMike2017-07-04 09:52:54
Yii
McMike, 2017-07-04 09:52:54

How to access a specific pjax block?

There is a registration form wrapped in pjax with id = 'pjax1'. Inside nested pjax with id = 'pjax2' to set a specific field.
How to hang an event on a specific pjax?
This is how it turns out for all pjax's on the page
$(document).on('pjax:complete', function() {
alert('I divide');
});

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question