I am using swiper for a carousel and I am adding remove functionality to remove images. I want to delete specific div with same name("swiper-slide") using the src of the image inside the div. I don't know if this possible, can anyone help me with this? I am specifically trying to use Javascript and not Jquery.
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide" id="slide4">
<img src="/Media/Default/Uploads/test-23.png" border="0" alt="" width="1097" height="361" />
</div>
<div class="swiper-slide" id="slide3">
<img src="/Media/Default/Uploads/knockoutjs-teaser.jpg" border="0" alt="" width="900" height="506" />
</div>
<div class="swiper-slide" id="slide1">
<img src="/Media/Default/Uploads/1556269682222.jpg" border="0" alt="" width="1305" height="548" />
</div>
<div class="swiper-slide" id="slide2">
<img src="/Media/Default/Uploads/duales-studium-berlin.jpg" border="0" alt="" width="3300" height="2475" />
</div>
</div>
</div>
nameattribute