0

I have to use multiple bootstrap carousel in single page.If i am using different id for each carousel its possible. But I want use same class or id..it is possible?I have tried like this $('.myCarousel').carousel();

1 Answer 1

2

Try this:

$(document).ready(function() {
  $('.carousel').each(function(){
      $(this).carousel({
          interval: 3000
      });
   });
});

http://jsfiddle.net/7DLyk/4/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.