My current task involves modifying a series of divs with background images named Look-1.jpg to Look-6.jpg. I am looking to add "-cut" to all of them simultaneously to transform them into Look-6-cut.jpg.
I have two collections of background images and I aim to switch between them based on different screen sizes.
While it can be achieved using CSS, doing so individually for each one is time-consuming. Is there a way to accomplish this efficiently using jQuery?
Thank you.
<div class="item active" style="background: url('/assets/img/collection/Look-1.jpg') center center no-repeat;">
<div class="carousel-caption item-caption">
<h5 class="text-black">200 TC Cotton Percale Duvet Cover</h5>
<a href="#" class="link-inline">View Product<i class="fa fa-angle-right"></i></a>
</div>
</div>