[Solved] Ajax pagination links triggers off canvas to open? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: [Solved] Ajax pagination links triggers off canvas to open? (/showthread.php?tid=67923) |
[Solved] Ajax pagination links triggers off canvas to open? - wolfgang1983 - 04-24-2017 I am now using ajax for my codeigniter pagination but when I click on my pagination links It triggers the off canvas to open How can I prevent the off canvas to open when I click on my pagination links? PHP Code: <script type="text/javascript"> PHP Code: <script type="text/javascript"> PHP Code: <script type="text/javascript"> RE: Ajax pagination links triggers off canvas to open? - wolfgang1983 - 04-25-2017 I solved it couple of things I have had to do Is on the offcanvas script I had to remove the code that I had and just use PHP Code: $(document).ready(function() { And add e.preventDefault(); e.stopPropagation(); same with question-pag PHP Code: $(document).on("click", ".user-pag li a", function(e){ |