Add indicators automatically to bootstrap carousel
问题 I have bootstrap carousel in example as youu see and I don't want to add indicators in html I just want to add in js to work for every carousel and I found a function on the internet and it's work very well but it's work just for one carousel I have two carousel #carousel-1 and #carousel-2 but my function work is just for #carousel-1 .I know if I give same class my problem will be solved but carousel id and li.data-target of indicators must be same. How can I add carousel-indicators