In my example I’m reloading a Pjax-Container with ID “pjaxItemContainer”
Just an example:
echo Html::dropDownList(
'categoryDropDown',
null,
// items for the dropdown (union of 2 arrays with +)
['default' => 'Select Category']+Category::getArrayList(),
['id' => 'cat_drop'] // set ID for the dropdown to get it by JS
);
$this->registerJs('
$("document").ready(function(){
$("#cat_drop").on("change", function() {
$.pjax.reload({
method: "POST",
data: {cat_drop:$(this).val()},
container:"#pjaxItemContainer"
})
})
});
');
So I think you have to modify the code a littlebit…