title: How to populate alt fields with the src of an image for all images on page
body: <p>I am working on a site that has a page that will have a couple hundred thumbnails.  I would like to have the filenames (the src) of the images populate the alt fields.  So for example, I currently have the thumbnails as follows: </p>
  
  <pre><code>&lt;img src="images/thumb1.jpg" /&gt;
  </code></pre>
  
  <p>I would like to populate the alt fields with the filename.  So, the desired result would be: </p>
  
  <pre><code>&lt;img src="images/thumb1.jpg" alt="thumb1" /&gt;
  </code></pre>
  
  <p>Is there a way I can automatically generate these alt tags using the images src?</p>
  
  <p>Any suggestions are appreciated. Thank you for the help!</p>