title: how to transfer data from <a> tag to popup dialog in jquery mobile?
body: <p>i dynamically generate this html code to delete an item with an id=3 for example:</p>
  
  <pre><code>"&lt;a href='javascript:delete('" + item.id + "')&gt;";
  </code></pre>
  
  <p>when i click this, it will execute delete('3');i change it as:</p>
  
  <pre><code>&lt;a href='#delete' data-rel='popup' data-position-to='window' data-transition='pop'&gt;
  </code></pre>
  
  <p>and add a  dialog for this  tag:</p>
  
  <pre><code>&lt;div data-role='popup' id='delete'&gt;
      &lt;a href='javascript:delete(item.id)' data-role='button'&gt;delete&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>how to transfer the item's id to this popup dialog's  tag, any suggestion?</p>