This might be straightforward, but i want to change the src of the img tag which is inside an li tag. There are 4 li tags and only the li tag which has class active should change it's img tag's src.
<ul>
<li><img src="example.jpeg" /></li>
<li class="active"><img src="Notexample.jpeg" /></li>
<li><img src="example.jpeg" /></li>
<li><img src="example.jpeg" /></li>
</ul>
Moreover, the active class toggles between the li tags to change the source...