title: jQuery: How can I get a click event to trigger for all elements with identical IDs?
body: <p>I have a jQuery <code>click</code> event that needs to trigger for any element clicked on with a given ID.</p>
  
  <p><a href="https://jsfiddle.net/Miega/ahkgktrm/1/" rel="nofollow noreferrer">Link to jsfiddle demo here.</a></p>
  
  <p>The function in question:</p>
  
  <pre><code>$("#trigger").click(function(e) {
    console.log($(this)[0].title);
    e.stopPropagation();
  });
  </code></pre>
  
  <p>My function only works on the <strong><em>very first</em></strong> element with the <code>trigger</code> ID, but none of the others. <strong>How can I get my function to work on all of those elements?</strong></p>