title: get each id in the div tag
body: <pre><code>var data = "&lt;div&gt;&lt;table width='100%'&gt;&lt;tr&gt;&lt;td align='right' &gt;&lt;div class='close16'/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;div&gt;&lt;table&gt;&lt;tr&gt;&lt;td rowspan='4' width='50px;'&gt;&lt;img src='" + staffItem.Photo + "' Width='48' Height='48'  /&gt;&lt;/td&gt;&lt;td&gt;" + staffItem.Name + " ( " + staffItem.StaffId + " )&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;table cellpadding='0' cellspacing='0'&gt;&lt;tr&gt;&lt;td&gt;" + staffItem.Email + "&lt;/td&gt;&lt;td&gt;&amp;nbsp;|&amp;nbsp;&lt;/td&gt;&lt;td&gt;" + staffItem.Mobile + "&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt; ";
  $('#staffInCharge').append(data);
  </code></pre>
  
  <p>I've collected staff details like this, from the autocomplete textbox, and am storing these into a div.....how can I collect the "staffId" alone(even if I have 5 or 10 records within the div).....I think I can get it by using .each method, I donno how to proceed, can anyone help me here</p>