Moloch,
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style type="text/css">
.glyphicon-plus-sign::after {
content: '+'
}
.glyphicon-minus-sign::after {
content: '-'
}
.toggle-sub-menu {
text-decoration: none
}
.toggle-sub-menu + ul{
display: none;
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>
$(function(){
$(".toggle-sub-menu").click(function(){
var cont = $(this).next();
var i = $('i' , this)
cont.slideToggle("slow",function() {
i.toggleClass('glyphicon-plus-sign glyphicon-minus-sign')
});
});
});
</script>
</head>
<body>
<ul class="list-group submenu">
<li class="list-group-item ">Lorem ipsum
<a href="#" class="toggle-sub-menu" > <i class="glyphicon glyphicon-plus-sign "></i></a>
<ul class="my-submenu" id="sub1" >
<li><a href="">proof1</a></li>
<li><a href="">proof1</a></li>
<li><a href="">proof1</a></li>
<li><a href="">proof1</a></li>
</ul>
</li>
<li class="list-group-item"><a href="/donec/">Donec tincidunt laoreet</a></li>
<li class="list-group-item"><a href="/vestibulum/">Vestibulum elit</a></li>
<li class="list-group-item"><a href="/etiam/">Etiam pharetra</a></li>
<li class="list-group-item"><a href="/phasellus/">Phasellus placerat</a></li>
<li class="list-group-item"><a href="/cras/">Cras et nisi vitae odio</a></li>
<li class="list-group-item ">Lorem ipsum
<a href="#" class="toggle-sub-menu" > <i class="glyphicon glyphicon-plus-sign pull-right"></i></a>
<ul class="my-submenu" id="sub2">
<li><a href="">proof1</a></li>
<li><a href="">proof1</a></li>
<li><a href="">proof1</a></li>
<li><a href="">proof1</a></li>
</ul>
</li>
</ul>
</body>
</html>