🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

A very tiny jQuery plugin for creating Collapsible Form Fieldsets where the users are able to expand/collapse a group of related form fields by clicking on the legend element when needed.

fieldset

Documentation

jquery-collapsible-fieldset

Overview

jQuery plugin for Drupal-style collapsible fieldsets.

Usage

$("fieldset.collapsible").collapsible();
<form> 	<fieldset class="collapsible"> 		<legend>Fieldset Collapsible Legend</legend> 		<div>         		<input type="text" /> 		</div> 	</fieldset> </form>

Options

Name Description Type Default
collapsed Set true if fieldset should be collapsed by default. Boolean false
animation Should an animation be used when collapsing/expanding fieldset. Boolean true
fade This is the speed at which the fieldset animation will occur. Integers in milliseconds are accepted, as well as standard jQuery speed strings (slow, normal, fast). Integer or String medium

You May Also Like