title: find last child element of image
body: <p>i have 16 images on image slider div. i have written code to dynamicaly add img in different classes. now i need to check if image is last one then add in last class.</p>
  
  <p>i have written this code just to display alert if user clicks on last image .</p>
  
  <pre><code> if($(this).is('img:last'))
          {
         alert('last child');
          }
          else
          {
              alert("atleast Nooooooooooooooo");
          }
  </code></pre>
  
  <p>This is not working . i have created fiddle <a href="http://jsfiddle.net/EdGBH/9/" rel="nofollow noreferrer">http://jsfiddle.net/EdGBH/9/</a>
  <img src="https://i.stack.imgur.com/GS8If.jpg" alt="enter image description here"></p>
  
  <p>last-child property is working in fiddle but in my slider its not working .Please help.</p>
  
  <p>Thanks and Regards,</p>