Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 119618

zumajoe on "[Plugin: Advanced AJAX Page Loader] Retrieve Body Class from DATAA"

$
0
0

Trying to grab the class names from the loaded content's Body Class (so that I can replace the body class on the current page with what was loaded), I've come up with the following but cannot seem to get this to work:

classes =  jQuery(dataa).find('body').attr ("class").split(' ');

for(var i=0; i<classes.length; i++){
 console.log(classes[i]);
}

Anyone have a clue?

http://wordpress.org/extend/plugins/advanced-ajax-page-loader/


Viewing all articles
Browse latest Browse all 119618

Trending Articles