Reputation: 4564
here is the code I am using :
$('.label').load('page.php?id='+pageid);
I want to be able to refresh the div with class="label" only. I use load it works but places the whole page content inside that div. how do I reload only that part?
Upvotes: 0
Views: 1028
Reputation: 160933
You should let the ajax response only be the part you wanted, if it returns the whole page, why not just refresh the page. Although .load
supports to select the parts of the response with a suffixed selector expression.
Upvotes: 1