jQuery getting class
<pre><code>            $(document).ready(function(){

      $('img').click(function(){
 var class = $("img").attr("class");
 console.log(class);
      });

            });
</code></pre>

<p>Back with another question. I have 3 images each with a different class (image1, image2, image3). If i run the code above the log will only show the class of the first image no matter what image I click on</p>
