I'm trying to load a few div's using JQuery .load(), one of those being the div containing the links from where to load from. Here's the code:
$(".category").click(function(e){
e.preventDefault();
var link = $(this).attr("href");
$('#right_options').load(link+' #right_options');
$('#center_content_title').load(link+' #center_content_title');
$('#center_content').load(link+' #center_content');
});
The first time works great but the second time instead of loading using jquery it loads the entire page by following the link, not detecting the click, the class or something. Where's the problem on loading like this?