BootStrap TreeView

Regarding: bootsnipp.com/snippets/featured/bootstrap-30-treeview

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 () - 1 month ago - Reply 0