I am using this code:
$('.ui-accordion').bind('accordionchange', function(event, ui) {
$(this).next().next().css({'background-image':'images/green-bg.jpg'});
//ui.newHeader // jQuery object, activated header
//ui.oldHeader // jQuery object, previous header
// ui.newContent // jQuery object, activated content
// ui.oldContent // jQuery object, previous content
});
To try to change the background image of the PREVIOUS header after it changes. I see that the jquery docs supply the object for oldHeader, but I am trying to change the CSS of that element. Any ideas how I would do that?
So You go to the next one it goes green, then the current one is going to be red.
Thanks,
Ryan