hello,
am tryna figure something out and it makes sense in the head but when i put it into testing nothing seems to work…
what ive got is a simple vertical accordion and what i want is an image to rotate and point up or down depending on whether the section is open or closed?
This is my current JQ for the accord
$(function() {
$('#accord-wrap .expand').wrapInner('');
$('#accord-wrap div.demo:eq(0)').find('.expand:eq(0)').addClass('open').end()
.find('div.collapse:gt(0)').hide().end()
.find('.expand').click(function() {
$(this).toggleClass('open').siblings().removeClass('open').end()
.next('div.collapse').slideToggle();
return false;
});
});
any ideas?