Change icon and text of button on button click – Jquery
I currently have a button with a span that displays an icon with an arrow, like so: <button id="btnCollapse" type="button" onClick="hey()" class="btn btn-default btn-sm"> <span id="iconCollapse" class="glyphicon glyphicon-collapse-down"></span> Collapse Views </button> I would want onClick function to instead now say…