background-check
background-check copied to clipboard
Uncaught [object HTMLDivElement] is not a target
$('#carouselExampleIndicators').bind('slide.bs.carousel', function (e) {
console.log(e.relatedTarget);
BackgroundCheck.refresh(e.relatedTarget);
});
I'm getting next image that will be shown after slider complete sliding with e.relatedTardet. It is Target element injected into event from bootstrap carousel. But i get all the time [object HTMLDivElement] is not a target, and it is target.
Target is not img as <IMG ...> it is <DIV ...> with backgeround from bootstrap carousel example.
You can do this :
BackgroundCheck.set('targets', 'e.relatedTarget');
BackgroundCheck.refresh();