How to reload multiple pjax

joshua pogi 28 picture joshua pogi 28 · Aug 13, 2015 · Viewed 7.9k times · Source

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.

Answer

GAMITG picture GAMITG · Aug 13, 2015

Try this.

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