I want to pull only a specific div from the page my link is pointing to.
My links are formatted like this : <a href="about-smith.asp" class="pic">img</a>
$(function(){
$("a.pic").live('click', function (e) {
e.preventDefault();
$("#subsidebar").load($(this).attr("href") + "#subcontent");
});
});
And I want that to pull only the #subcontent div from about-smith.asp. It’s displaying the content in the #subsidebar div, but it’s the entire page.
You need to add a space between the url and the selector: