Web Development with jQuery®

(Elliott) #1

bapp14.indd 02/17/2015 Page 585


Accordion


METHOD DESCRIPTION RETURN VALUE

SHOWING AND HIDING
METHODS

accordion(options) Makes the selected elements into accordions
(see “Accordion Options”).

jQuery

accordion('destroy') Destroys the selected accordion. jQuery

accordion('disable') Disables the selected accordion. jQuery

accordion('enable') Enables the selected accordion. jQuery

accordion('option') Returns an object containing all the options
and their values.

Object

accordion('refresh') Recalculates accordion panels, headers, and
heights after modifying an accordion.

jQuery

accordion('widget') Returns a jQuery object that contains the
accordion.

jQuery

N


http://www.it-ebooks.info

Free download pdf