Last active
November 10, 2018 06:02
-
-
Save SunDi3yansyah/1cf8cdbb5fbd595f09ad40d727656c15 to your computer and use it in GitHub Desktop.
Menu Active with JS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var url = window.location; | |
var element = $(".ui.vertical.menu a.item").filter(function() { | |
return this.href == url || url.href.indexOf(this.href) == 0; | |
}).addClass("active").parent().parent().parent(); | |
if (element.is("li")) { | |
element.addClass("active"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bisa di pake buat treeview di adminlte gak ya mas?