Hi. I have 2 JQuery accordians side by side working perfectly. Problem is, if one of the tabs on one side is collapsed, all tabs on the other side should be closed. Not too sure how to make this happen, at the moment I am trying
Code:
$(function() {
    $( "#accordion" ).accordion({
        collapsible:true,
        active:false,
        change:change
    });
    var change = function(event, ui){
        if($('#accordion2').active == true){
            $('#accordion2').active = false;
        }
    }
    $( "#accordion2" ).accordion({
        collapsible:true,
        active:false
    });
});
Any advice appreciated.

Cheers