What exactly does this "active: false"? I tried to change it to true but no change seems to appear


#1


https://www.codecademy.com/en/courses/web-beginner-en-jtFIC/1/1?curriculum_id=50a3fad8c7a770b5fd0007a1#


$("#menu").accordion({collapsible: true, active: false});


#2

Setting the active to true won't do anything...Try setting the active to 0 , 1 or 2 since the last index being 2 in this case...

$("#menu").accordion({collapsible: true, active: 2});

passing a specific index will let that particular index panel to be active thus opening the accordion by default on page load

for more infomation read the documentation.....it's very helpful
http://api.jqueryui.com/accordion/


#3

But I am still keeping my opinion .. the documentation seems to be pretty tricky.


#4

Is it tricky indeed....but befriend it no matter what :slight_smile:


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.