Search code examples
yii2pjax

How to reload multiple pjax


i just want to know how to reload multiple pjax? this is my code

        $.pjax.reload({container:"#con_camp"});
        $.pjax.reload({container:"#con_camp1"});

but only the #con_camp1 is the one that will reload.


Solution

  • Try this.

       $.pjax.reload({container: "#1-pjax", async:false});
        $.pjax.reload({container: "#2-pjax", async:false});