0
我試圖寫一些jQuery,將切換DIV打開和關閉,它的工作,但我想要一個箭頭,將更改爲「向下」,如果DIV展開,如果DIV崩潰,則爲「正確」。jQuery:切換圖像時切換DIV
我有什麼至今:
$('.toggleHead').click(function() {
$('#arrow').attr('src', 'images/icons/down.png');
$(this).next().toggle();
return false;
}).next().hide();
我會在哪裏把其他$('#arrow').attr('src', 'images/icons/right.png');
?
謝謝!