Toggle click

Toggle click

Hi, 

I have a sidebar I would like to toggle a click function to show and hide, can anyone please help, 

I have the code to hide but then I need to be able to click again to show

  1. $( ".sidebar-icon" ).click(function() {
    $("#sidebar-wrapper .list-group").css('width','0');
    $(".navigation-warnj").css('width', '0');
    });