So I have the HTML like this:
<p class="agendaNav"><img class="rightArrow" src="/images/arrowright.png"> WEEK AT A GLANCE</p>
<p class="agendaNav"><img class="rightArrow" src="/images/arrowright.png"> MONDAY</p>
<p class="agendaNav"><img class="rightArrow" src="/images/arrowright.png"> TUESDAY</p>
In Jquery I want to change the src attribute from ArrowRight.png to arrowdown.png when it is clicked.
How would I do that?
Here is what I have so far:
$('.agendaNav').click(function(event){
$(this).('.rightArrow').attr('src', '/images/arrowdown.png');
});
What am I doing Wrong?
Oh and I only want to change the Arrow of the clicked on element, not every single one.