javascript - How to Collapse the first accordion when the last one is completed? -


i'm using twitter boostrap first time & using collapsible accordion.

i wants trigger first accordion open when last 1 completed. working in forward directions. control not working fine me when looking in backward direction. can please on this?

just use jquery cookie , make modification accordion script

$(document).ready(function() {     var last=$.cookie('activeaccordiongroup');     if (last!=null) {         //remove default collapse settings         $("#accordion2 .collapse").removeclass('in');         //show last visible group         $("#"+last).collapse("show");     } });  //when group shown, save active accordion group $("#accordion2").bind('shown', function() {     var active=$("#accordion2 .in").attr('id');     $.cookie('activeaccordiongroup', active) }); 

Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -