title: How to append the img alt to an li
body: <p>Hey guys, me again, I know I asked something similar a little while ago, but the function that i need for this it is slightly different, this time I have an ul element with img tags embedded inside a tags. What I need is when the image is clicked to populate an li element, but is the next or last image is clicked I need the same li element populated with the update content. Please find the html below. Thanks in advance.</p>
  
  <pre><code>&lt;div class="filter"&gt;
      &lt;div class="heading" id="activityLevel"&gt;
          &lt;p&gt;&lt;a href="#"&gt;Activity Level&lt;/a&gt;&lt;/p&gt;
          &lt;a href="#" target="_self"&gt;modify&lt;/a&gt;                  
      &lt;/div&gt;
      &lt;div class="add-filters" id="addActivityLevel"&gt;
          &lt;div class="inner"&gt;
              &lt;a href="#" class="btn-close"&gt;&lt;/a&gt;
              &lt;h4 class="title-filtery"&gt;Filtery By:&lt;/h4&gt;
              &lt;ul class="activity-level"&gt;
                  &lt;li&gt;&lt;a href="#"&gt;&lt;img src="../images/shore-excursions/btn-activity-level-easy.gif" alt="Activity Level Easy" /&gt;&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;&lt;img src="../images/shore-excursions/btn-activity-level-moderal.gif" alt="Activity Level  Moderate" /&gt;&lt;/a&gt;&lt;/li&gt;
                  &lt;li class="last"&gt;&lt;a href="#"&gt;&lt;img src="../images/shore-excursions/btn-activity-level-extreme.gif" alt="Activity Level Extreme" /&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;
              &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. iaculis in magna. In ut dolor a lacus adipiscing molestie.&lt;/p&gt;
              &lt;div class="btn-holder clearfix"&gt;
                  &lt;input type="button" class="btn-cancel" value="" /&gt;
                  &lt;input type="button" class="btn-update" value="" /&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;&lt;!-- filters --&gt;
      &lt;div class="hidden-filters" id="hiddenActivityLevel"&gt;
          &lt;p&gt;Filtering by:&lt;/p&gt;
          &lt;ul&gt;&lt;/ul&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>