Is it possible to link multiple collapsible div containers together in operation so that only one can be open at a time?
Right now this is how I have it operating. It works, but I'm not sure if this is the best way to accomplish such a thing.
onCollapsibleExpand:
function
(e){
var
thisID = $(
this
.element).attr(
"id"
);
$(
".km-collapsible"
).each(
function
(k,v){
// if not clicked item and is currently visible
if
( ($(
this
).attr(
"id"
) != thisID) && $(
this
).is(
":visible"
) ){
$(
this
).data(
"kendoMobileCollapsible"
).collapse();
}
});
},