var options = $( "#accordion" ).accordion( "option" );
This will return a PlainObject giving all the options representing the selected accordion. This will contain all the values of the keys that are explained in the Parameters section.
This method takes parameters which are the basic optionNames explained in the parameter. One can set the options like this:
$( "#accordion" ).accordion( "option", "disabled", true );