In jquery ui doc , there is method by index to activate accordion.
However I want to activate from "accordion found".
What must be replaced by ???
in code below, or any other solution
var accordion = $('.ui-accordion')
accordion.each(function () {
var hashHref = $.param.fragment(); //hashHref is the anchor href of relevant accordion
$(this).find("a[href='#" + hashHref + "']").???;
});
Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…