I have been working on this page located at
Unfortunately, my attempts to showcase the issue in a jsfiddle were unsuccessful.
The webpage features an accordion-style FAQ section, and I am attempting to make the arrow rotate 90 degrees when a question is clicked. Currently, only the top question triggers the rotation because I am using an ID for the image. However, switching to a class applies the rotation to all of them.
$(document).ready(function($) {
$('#accordion div').hide();
$('#accordion p span').click(function(){
$("#blueArrow").rotate(90);
$('#accordion div').slideUp();
$(this).parent().next().slideDown();
return false;
});
});
Can anyone pinpoint what might be causing the problem?