I have an accordion that works great. I am trying to find a way to find all the flaps of the accordion:
Find string on page (Ctrl + F) when using jQuery accordion
I used the destroy method by reference and then reinitialized to another link, but it would be great to switch this with a single button. ((I initially asked this question without this solution, so the answer below is just me. I will not accept it until I see if there are any better solutions))
$(document).ready(function() {
$("#hide").click(function() {
$(".accordion").accordion("destroy");
});
$("#show").click(function() {
$(".accordion").accordion({
navigation : true,
collapsible : true,
heightStyle : "fill",
active :
});
});
});
jQuery toggle(), . , , div , , , - JavaScript .
, , , , .accordion, - . , .
, , :
$(document).ready(function() {
$("#hide").click(function() {
$("#accordion").removeClass(".accordion");
});
$("#show").click(function() {
$("#accordion").addClass(".accordion");
});
});
, , remove , .