title: Javascript: Find Other IDs
body: <p>I have 5 divs with a class of "ticket-selection" and unique IDs. I figured out how to find each unique ID on click, and add a class. However, I want to find all the other IDs, and remove that class (so only 1 ID has the "active" class). Here's my code:</p>
  
  <pre><code>        var $ticket;
  
          $('.ticket-section').on('click', function(e) {
              $ticket = $(this);
              if (this.id) {
                  alert(this.id);
                  $(this).toggleClass("active");
              }
              e.preventDefault();
          });
  </code></pre>
  
  <p>I believe I would need to create an array, but I'm not sure how that integrates into this code. Can I say "if this ID is clicked, addClass, but removeClass on the other 4 IDs. Thank you.</p>