title: jquery image click event for specific images
body: <p>I have images that are dynamically added to a page, and on that page I have a jquery function which shows when an image is clicked. It all works fine, but I have static images on the page that I don't want to be clickable for the function. </p>
  
  <p>This is the jquery that runs whenever an image is selected. I can't use the<code>id</code> element of the images because they are different all the time. </p>
  
  <pre><code>$().ready(function () {
      $('img').click(function () {
          //do something
      }
  }
  </code></pre>
  
  <p>How can I make it so only the images I want run with function when clicked?</p>