Unexpected string whilst trying to load one element into another
I'm trying to .load() the #main-content div from a particular url into my
#pane-other-topics element, but I'm getting an "Unexpected String Error" I
can't hunt down.
Can anyone help me solve this little bug?
Code:
jQuery(document).ready(function($) {
$("a.bbp-topic-permalink").live('click',function() {
url = $(this).attr('href') . " #main-content";
$('#other-topics-pane').load( url );
return false;
});
});
No comments:
Post a Comment