title: Creating image caption from alt script
body: <p>I am trying to use this jQuery script to make an image caption from the alt tag:</p>
  
  <pre><code>$("#content img").each(function () {
      var $this = $(this);
      var title = $this.attr("alt");
  $this.after('&lt;div class="caption"&gt;'+ title +'&lt;/div&gt;');
  });
  </code></pre>
  
  <p>I am using another jQuery script before it and it is working fine. I can't seem to get the caption to alt script to work. </p>
  
  <p>Example: www.cslack.com/test.html</p>
  
  <p>Thanks,</p>
  
  <p>Robert</p>