title: make array from a list of images with jquery
body: <p>i have a list of photos like this:</p>
  
  <pre><code>&lt;div class="upimage"&gt;
      &lt;ul id="upimagesQueue" class="thumbs ui-sortable"&gt;
      &lt;li id="upimagesKHGYUD"&gt;
          &lt;a href="uploads/0002.jpg"&gt;
              &lt;img src="uploads/0002.jpg" id="KHGYUD"&gt;
          &lt;/a&gt;
      &lt;/li&gt;
      &lt;li id="upimagesNCEEKI"&gt;
          &lt;a href="uploads/0003.jpg"&gt;
              &lt;img src="uploads/0003.jpg" id="NCEEKI"&gt;
          &lt;/a&gt;
      &lt;/li&gt;
      &lt;li id="upimagesPWSHUN"&gt;
          &lt;a href="uploads/0003.jpg"&gt;
              &lt;img src="uploads/0003.jpg" id="PWSHUN"&gt;
          &lt;/a&gt;
      &lt;/li&gt;
      &lt;li id="upimagesOYJAQV"&gt;
          &lt;a href="uploads/0004.jpg"&gt;
              &lt;img src="uploads/0004.jpg" id="OYJAQV"&gt;
          &lt;/a&gt;
      &lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>i want to make a function in jquery  too get all the images in 1 array to be able to sent the array to php! the array i want to be in this form:</p>
  
  <pre><code>array(
      'image_id_1' =&gt; array(
          'image_src_1' =&gt; 'xyz.jpg',
      )
      'image_id_2' =&gt; array(
          'image_src_2' =&gt; 'xyz.jpg',
      )
      'image_id_3' =&gt; array(
          'image_src_3' =&gt; 'xyz.jpg',
      )
      'image_id_4' =&gt; array(
          'image_src_4' =&gt; 'xyz.jpg',
      )
  )
  </code></pre>
  
  <p>how i can code this?
  thanks</p>