Looking to retrieve the src of the active image in a carousel of images. Currently, my code is as follows:
$(document).ready(function () {
$("#myCarousel1").on('slide.bs.carousel', function () {
var ele = $('.carousel-inner .item .active').val('.carousel - inner.item.active').toString();
var totalItems = $('.item').text().length;
console.log('target: ' + totalItems);
alert(totalItems);
$.ajax({
url: '@Url.Action("Description", "Experience")',
data: { 'Activite': totalItems },
type: 'post',
success: function (data) {
$("#loadpartial").html(data);
}
});
});
});