I have the following div with a img src and and alt:
<div class="slick-cell"><span style="color: red;">99</span>
<img src="images/global.images.arrow_down_dark.png" alt="Downward">
</div>
How do I add a class "Down" to the parent DIV, (right after slick-cell class), if the alt of the src equal Downward.?
Thanks in advance with any help
something similar
if ($(".src").hasAlt("Downward")) {
$(".slick-cell").addClass(".Down");
}