I have a simple script in jquery to toggle a div (show and hide) when a is clicked (I\'m using bootstrap).
HTML:
$("#togglebutton").click(function () { $(".fa-arrow-circle-left").toggleClass("fa-arrow-circle-right"); }
I have a button with the id "togglebutton" and an icon from FontAwesome . This can be a way to toggle it . from left arrow to right arrow icon