Retrieve Body Class from DATAA
-
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?
https://www.ads-software.com/extend/plugins/advanced-ajax-page-loader/
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Retrieve Body Class from DATAA’ is closed to new replies.