Skip to content

Instantly share code, notes, and snippets.

@izumi-xchange

izumi-xchange/category_accordion.js Secret

Last active Jun 2, 2016
Embed
What would you like to do?
カテゴリー表示など階層メニューに使えるアコーディオンのJQuery
$(function(){
$("#category h3 span").on("click", function(){
$(this).parent('h3').next('ul').slideToggle();
$(this).toggleClass("active");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment