so I am having a little trouble with this button performing either of these functions on click.....
it isn't great as baseexpand and fullcollapse should be classes but I am not skilled enough to re-write an entire set of functions to accomodate this as they have about 50 dependencies.
Anyway to the point , here is the two functions ....
// Full collapse
$( '#fullcollapse' ).click(function(){
$( '#menu' ).multilevelpushmenu( 'collapse' );
});
// Base expand
$( '#baseexpand' ).click(function(){
$( '#menu' ).multilevelpushmenu( 'expand' );
});
they expand and collapse a sidebar-menu .... i have 2 buttons that looks like this ....
<a id="fullcollapse" class="nav-toggle" role="button" href="#"><span></span></a>
<a id="baseexpand" class="nav-toggle" role="button" href="#"><span></span></a>
I want to make those buttons into one toggle button changing between the id's on each click.
I have been reading documentation for about 6 hours straight now and trying to look into it but am unable to solve this one. Please help