visible

The visible() method, called without any parameters, will return true if the accordion is visible and false otherwise.

The visible(bool) method is used to update an Accordion's visible state. Passing true will show and false will hide it.

<div id="accordion"></div>

<script type="text/javascript">
$(function () {
    $("#accordion").shieldAccordion({
        mode: 'multiple',
        dataSource: {
            data: [
                {
                    title: 'Perl',
                    content: 'A very good programming language'
                },
                {
                    title: 'C++',
                    content: 'Also very good for development'
                },
                {
                    title: 'JAVA',
                    content: 'Moderate stuff'
                }
            ]
        }
    });

    // hide the accordion
    $("#accordion").swidget().visible(false);
});
</script>