This will be more better.
https://dotrepository.com/master-royale/
$(function () {
$( "#tree2 .selected" ).parents('#tree2 .branch').map(function() {
console.log($(this));
var icon = $(this).children('i:first');
icon.toggleClass('glyphicon-folder-open glyphicon-folder-close');
$(this).children().children().toggle();
})
});
faad1 () - 5 years ago - Reply 0