Create a gist now

Instantly share code, notes, and snippets.

$("#demo2").navgoco({accordion: true});
$("#demo2").find("li:not(:has(ul)) > a").click(function(e) {
$(this).parent().parents('ul').each(function() {
idx = $(this).attr('data-index');
if (!idx) {
return false;
}
$("#demo2").navgoco('toggle', true, idx);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment