title: JQuery Toggle icon with a variety of different icons issue
body: <p>I am currently trying to set up a menu with a icon toggle, so when one icon is clicked it changes to a cross and then when that cross is clicked it changes back to the original. I have got that far, but when I click a new image I want the old icon to reset and the cross to be applied to the new icon. </p>
  
  <p>This is how far I have got:</p>
  
  <pre><code>&lt;div class="panel panel-default"&gt;
      &lt;div class="panel-heading" role="tab" id="headingFive"&gt;
          &lt;a class="collapsed faq-links"&gt;
              &lt;i id="icon" class="fa fa-info-circle fa-3x"&gt;&lt;/i&gt;
          &lt;/a&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;br /&gt;
  &lt;div class="panel panel-default"&gt;
      &lt;div class="panel-heading" role="tab" id="heading13"&gt;
          &lt;a class="collapsed faq-links"&gt;
              &lt;i id="icon" class="fa fa-heartbeat fa-3x"&gt;&lt;/i&gt;
          &lt;/a&gt;
      &lt;/div&gt;       
  &lt;/div&gt;
  &lt;br /&gt;
  &lt;div class="panel panel-default"&gt;
      &lt;div class="panel-heading" role="tab" id="headingFour"&gt;
          &lt;a class="collapsed faq-links" &gt;
              &lt;i id="icon" class="fa fa-comments fa-3x"&gt;&lt;/i&gt;
          &lt;/a&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Javascript:</p>
  
  <pre><code>$('.faq-links').click(function(){
      var collapsed=$(this).find('i').hasClass('fa-info-circle');
      $('.faq-links').find('i').removeClass('fa-times');
      $('.faq-links').find('i').addClass('fa-info-circle');
      if(collapsed)
          $(this).find('i').toggleClass('fa-info-circle fa-3x fa-times fa-3x')
  });
  </code></pre>
  
  <p>I've set up a JSFiddle to show it working  <a href="https://jsfiddle.net/BenjiBaird/yycf2jb8/1/" rel="nofollow noreferrer">https://jsfiddle.net/BenjiBaird/yycf2jb8/1/</a></p>
  
  <p>So when I click on info-circle the cross is applied and when I click on another that cross is removed. How do I go about applying this so every icon.</p>
  
  <p>Any help would be appreciated, hope I made myself clear.</p>