Place to intercept Accordion from changing pane?
I'm trying to fold in an accordion into a page and I'd like to stop
the user from going to a lower pane unless something is selected in
the previous ones (kind of using the Accordion like a wizard)
is there any place to intercept the change to a new content pane while
I check some logic first?
I was hoping:
$("#Page_Accordion").accordion({
change: function(e, ui) {
return (my Logic here);
}
})
would do it, but that happens "too late"
Also tried:
$("#Page_Accordion h3").click(function() {
return false;
});
and that doesn't stop the accordion action either
btw, i'm trying to avoid "disabling" the Accordion because I want the
first pane opened and not faded out from the CSS calling disabled
applies