title: How to select multiple elements with jQuery
body: <p>I'm new to JQuery/Javascript etc... based on the following article: 
  <a href="https://stackoverflow.com/questions/924790/how-to-make-the-a-href-tag-refer-to-nothing">How to make an anchor tag refer to nothing?</a></p>
  
  <p>I would like to apply the java function to several id's. Can we not make the function execute for classes as opposed to ids?</p>
  
  <pre><code>&lt;span class="style1" id="myid"&gt;Link&lt;/span&gt; 
  &lt;span class="style1" id="myid"&gt;Link&lt;/span&gt;
  &lt;span class="style1" id="myid"&gt;Link&lt;/span&gt;
  &lt;span class="style1" id="myid"&gt;Link&lt;/span&gt;
  &lt;span class="style1" id="myid"&gt;Link&lt;/span&gt;
  
  $('myid').click(function() { 
      /* put your code here */ 
  }); 
  </code></pre>
  
  <p>Basically as above, how do I execute the function above for ALL of the links? Is this possible? Thanks in advance.</p>