Can I remove a class property in html using jquery?
If the element is class = "item active" on the next clone in jQuery how can I remove the active word?
Here's the Jquery Code
(function() {
$('#itemslider').carousel({
interval: 3000
});
}());
(function() {
$('.carousel-showmanymoveone .item').each(function() {
var itemToClone = $(this);
var allcase = $('#cases').val();
for (var i = 1; i < allcase - 1; i++) {
itemToClone = itemToClone.next();
if (!itemToClone.length) {
itemToClone = $(this).siblings(':first');
}
itemToClone.children(':first-child').clone()
.addClass("cloneditem-" + (i))
.appendTo($(this));
}
});
}());