[Solved] HTML css jquery
[ad_1] There are many ways to target .item for example using :first-of-type if this doesn’t work or it selects more than desired then you need to add more code. $(“.product-slider-inner>.item:first-of-type”).addClass(“active”); .item.active { color: red; font-size: 120%; font-style: italic; } <script src=”https://code.jquery.com/jquery-1.10.2.js”></script> <div class=”carousel-inner product-slider-inner”> <?php while($featurepro = mysqli_fetch_assoc($featurequery)): ?> <div class=”item”>Something <div class=”col-md-2 col-sm-6 col-xs-12 … Read more