accordion

PHOTO EMBED

Tue May 31 2022 10:16:19 GMT+0000 (UTC)

Saved by @jaysoni123 #jquery

$(".prod-filter-accord .prod-accord-content:not(:first-of-type)").css("display", "none");

$(".prod-filter-accord .prod-accord-title:first-of-type").addClass("open");

$(".prod-filter-accord .prod-accord-title").click(function () {
$(".open").not(this).removeClass("open").next().slideUp(300);
$(this).toggleClass("open").next().slideToggle(300);
});
content_copyCOPY