I created an accordion using jQuery that smoothes out when the user clicks the second option, but I would also like to be able to minimize the open panel by clicking on the title again, how do I do this?
Here is a fiddle showing how I installed it: http://jsfiddle.net/gstubbenhagen/JyFRC/
EDIT: Replaced w / js code examples
//Initialize a accordion with the collapsible option specified. $( ".selector" ).accordion({ collapsible: true }); //Get or set the collapsible option, after init. //getter var collapsible = $( ".selector" ).accordion( "option", "collapsible" ); //setter $( ".selector" ).accordion( "option", "collapsible", true );
Source: http://jqueryui.com/demos/accordion/#option-collapsible
find this demo: http://jsfiddle.net/2DaR6/
Did you mean the effect, like in this demo ?
Click on the selected tab to switch its contents closed / open. To enable this functionality, set the resettable option to true .
option
true
collapsible: true
Source: https://habr.com/ru/post/1396179/More articles:Select p tag in div with id using h3 sibling tag with class - jqueryUsing a String String Bound Algorithm Predicate - c ++Accessing a string resource from a class library - c #How to read and print accent character from SQLite? - objective-cPick a random item with weight - pythonSleep mode multi-user alias - javaImplementation of Pinterest Gridview on iOS - iosGetting test results after setting up a build template for nunit tests in TFS 2010 - buildIOS screen constantly updated using voice attenuation UIAccessibility - iosHow to center image using jqmobile - jqueryAll Articles