title: Select element by tag inside a div with javascript
body: <p>I have this script which works to show image alt tags.</p>
  
  <pre><code>    $(document).ready(function() {
        $('img').click(function(){
          var altimg = $(this).attr('alt');
          alert('Alt: '+ altimg);
        });
      });
  </code></pre>
  
  <p>I cant understand the method you would use to specify the element to search within for images (i only want to run this script on images within my content div). </p>
  
  <p>How to implement getElementById in this instance is beyond me, can someone point me in the right direction?</p>