");
}
// Wrap the contents of the container within a new div.
jQuery(this).children().wrapAll("
");
// Create a new div as the first item within the container. Put the title of the panel in here.
jQuery("
").prependTo(jQuery(this));
// Assign a call to CollapsibleContainerTitleOnClick for the click event of the new title div.
jQuery(".collapsibleContainerTitle", this).click(CollapsibleContainerTitleOnClick);
}
function CollapsibleContainerTitleOnClick() {
// The item clicked is the title div... get this parent (the overall container) and toggle the content within it.
jQuery(".collapsibleContainerContent", jQuery(this).parent()).slideToggle(function () {
});
jQuery(".collapsibleContainerTitle").toggleClass("UnExpandIcon");
}
");
}
// Wrap the contents of the container within a new div.
jQuery(this).children().wrapAll("
");
// Create a new div as the first item within the container. Put the title of the panel in here.
jQuery("
").prependTo(jQuery(this));
// Assign a call to CollapsibleContainerTitleOnClick for the click event of the new title div.
jQuery(".collapsibleContainerTitle", this).click(CollapsibleContainerTitleOnClick);
}
function CollapsibleContainerTitleOnClick() {
// The item clicked is the title div... get this parent (the overall container) and toggle the content within it.
jQuery(".collapsibleContainerContent", jQuery(this).parent()).slideToggle(function () {
});
jQuery(".collapsibleContainerTitle").toggleClass("UnExpandIcon");
}