I have an OWL carousel (v2) that when you click the next button it reloads a div that contains an Ad (div is called .slideAd) -- i have looked at other pages on SO and none seem to work -- i feel like i have it, what am i missing?
I have this code, but it always throws a 500 server error, any help would be greatly appreciated
$(".rSlidesNav .n").click(function(e) {
var pathtopage = window.location.href;
$('.slideAd').load(pathtopage + ' #slideAd');
});