I have read almost all the threads regarding to the bootstrap carousel, but haven\'t found an answer to my question. I have added two control buttons (play/pause) to the car
For those who would like the play/pause buttons to switch off. jsFiddle example
Javascript:
$("button").click(function() {
if ($(this).attr("id") === "pauseButton") {
$('#homeCarousel').carousel('pause');
$(this).attr("id", "playButton");
$("span", this).toggleClass("glyphicon-play glyphicon-pause");
} else {
$('#homeCarousel').carousel('cycle');
$(this).attr("id", "pauseButton");
$("span", this).toggleClass("glyphicon-pause glyphicon-play");
}
});
HTML: