title: get one Attribute id, set as another Attribute id
body: <p>I'm currently using scriptaculous and prototype to drag/drop elements from one div to another, and append a new Element based on the 'src' of the element that is dropped, creating a new draggable out of it.</p>
  
  <p>What I need to do is assign the id of the dropped element to the new one once it is created.</p>
  
  <p>I've tried a ton of different approaches, here is the latest:</p>
  
  <pre><code>$$('.image').each(function(stack) {
  new Draggable(stack, { revert: true, ghosting: true }); 
  });
  </code></pre>
  
  <p>...</p>
  
  <pre><code>onDrop: function(stack) {
        var added = new Element('img');
        added.src = stack.readAttribute('src');
        var imageid = stack.identify();
        added.setAttribute('id', imageid);
  </code></pre>
  
  <p>obviously I'm a bit of a novice, and imagine I am way off by now.  Appreciate any help.</p>