Targetting a link to load inside a DIV

lmaoXitsXqtard

New Member
I have created a menu which is simply a series of DIVs and am using the following code\[code\]$(".menu_item").click(function(){ window.location = $(this).attr("data-href");return false;});\[/code\]to make the entire DIV for each item clickable. I have a "container" DIV setup with content initially loaded via php-include, but want different content to load when a different menu item is clicked. I know I can use JQuery.load to target the loading of an external file into a sepcific DIV but it looks that would mean coding separate instances of jquery for each link? I would also rather stick to using php includes if possible. Can I use jquery.load to load via php include?Any help on how to achieve this would be appreciated.
 
Back
Top