Grabbing the current image clicked on src attr using jqery
<p>Trying to get the current image selected src value.</p>

<p>Here is my script</p>

<pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function() {     
          $('#imagefiles ul li img').click(function() {
              var img = $this.attr('src');
                  alert(img);
          });
      });
&lt;/script&gt;
</code></pre>

<p>When i click on the image it says cannot find variable $this.</p>

<p>Any ideas on what i am doing wrong or how i can fix this?</p>

<p>Thanks</p>
