enabled

The enabled() method, called without any parameters, will return the current enabled state of an Accordion element.

The enabled(bool) method is used to update the Accordion enabled/disabled state. Passing true will enable and false will disable the widget.

<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'
                }
            ]
        }
    });

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