Manoj,You might also try replacing $(document).on(“pageload”,function(){ with $(“.nx-page”).one(“pageload”, function() {