title: How to use Bootstrap Carousel in Blazor
body: <p>newbie in Blazor. Need to try out how to use BS carousel in Blazor.</p>
  
  <p>I used below code in the Default Blazor app. But it does not work. What I need to do? </p>
  
  <p>Thanks</p>
  
  <ol>
  <li><p>I added this line in the Index.html </p>
  
  <p>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js">&lt;/script&gt;</p></li>
  <li><p>In the Counter page. I added the following:</p></li>
  </ol>
  
  <p>&lt;div class="container"></p>
  
  <p>
      
      
        </li>
        </li>
        </li>
      </p>
  
  <pre><code>&lt;div class="carousel-inner"&gt;
  
    &lt;div class="item active"&gt;
      &lt;img src="la.jpg" alt="Los Angeles" style="width:100%;"&gt;
      &lt;div class="carousel-caption"&gt;
        &lt;h3&gt;Los Angeles&lt;/h3&gt;
        &lt;p&gt;LA is always so much fun!&lt;/p&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  
    &lt;div class="item"&gt;
      &lt;img src="chicago.jpg" alt="Chicago" style="width:100%;"&gt;
      &lt;div class="carousel-caption"&gt;
        &lt;h3&gt;Chicago&lt;/h3&gt;
        &lt;p&gt;Thank you, Chicago!&lt;/p&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  
    &lt;div class="item"&gt;
      &lt;img src="ny.jpg" alt="New York" style="width:100%;"&gt;
      &lt;div class="carousel-caption"&gt;
        &lt;h3&gt;New York&lt;/h3&gt;
        &lt;p&gt;We love the Big Apple!&lt;/p&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  
  &lt;/div&gt;
  
  
  &lt;a class="left carousel-control" href="#myCarousel" data-slide="prev"&gt;
    &lt;span class="glyphicon glyphicon-chevron-left"&gt;&lt;/span&gt;
    &lt;span class="sr-only"&gt;Previous&lt;/span&gt;
  &lt;/a&gt;
  &lt;a class="right carousel-control" href="#myCarousel" data-slide="next"&gt;
    &lt;span class="glyphicon glyphicon-chevron-right"&gt;&lt;/span&gt;
    &lt;span class="sr-only"&gt;Next&lt;/span&gt;
  &lt;/a&gt;  
  </code></pre>
  
  <p>&lt; /div &gt;</p>
  
  <p>-- Update:  Index.html</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8" /&gt;
      &lt;meta name="viewport" content="width=device-width" /&gt;
      &lt;title&gt;BlazorCarouselTest&lt;/title&gt;
      &lt;base href="/" /&gt;
      &lt;link href="css/bootstrap/bootstrap.min.css" rel="stylesheet" /&gt;
      &lt;link href="css/site.css" rel="stylesheet" /&gt;
      &lt;script src="css/bootstrap/jquery-3.4.0.min.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;app&gt;Loading...&lt;/app&gt;
  
      &lt;script src="_framework/blazor.webassembly.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html &amp;gt;
  </code></pre>