title: How do I change a glyphicon upon clicking it in Bootstrap 3.2?
body: <p>I want to have an arrow pointing to the right to allow the user to expand the sidebar, and then change that glyphicon to point to the left. That way, it points to the left so that they understand how to hide the sidebar. I then want it to change back to its default state.</p>
  
  <p>This is what I have currently:</p>
  
  <pre><code>        &lt;div id="page-content-wrapper"&gt;
          &lt;div class='hidden-lg'&gt;
          &lt;div class="content-header"&gt;
                  &lt;h1&gt;
                  &lt;a id="menu-toggle" href="#" class="btn btn-default"&gt;&lt;i class="glyphicon glyphicon-arrow-right"&gt;&lt;/i&gt;&lt;/a&gt;
                  &lt;/h1&gt;
          &lt;/div&gt;
          &lt;/div&gt;
  </code></pre>