# jQuery Collapsible Fieldset

Default

By default the fieldset is opened or expanded at start. Click on its legend to close or collapse it.

The code is simply like below

    $('#fieldset1').coolfieldset();

Closed at start

If we want the fieldset to be closed or collapsed at start, just add {collapsed:true} as the argument.

    $('#fieldset2').coolfieldset({collapsed:true});

Notes :

- All content inside fieldset (except the legend tag) should be placed inside the div tag.
- Edit the jquery.coolfieldset.css to change the fieldset style.