title: How can I reference a SharePoint attribute within my selector?
body: <p>I currently have 500 SharePoint list items displayed on a page. There are attributes assigned to these list items, such as "EMail". (These can be seen when viewing the list item in the browsers dev tools)</p>
  
  <p>When I click on a button, I want to extract the "EMail" details from the visible list items on the page.</p>
  
  <p>Currently I have:</p>
  
  <pre><code>$('.container:visible').each(function() {
                      emailString += $(this).text() + "; ";
                  });
  </code></pre>
  
  <p>This will essentially pull through the data from the visible containers with the visible text. </p>
  
  <p>How can I pull through only the visible containers EMail attribute so that when I click on a button, it displays the emails of all list items?</p>
  
  <p>(I have the click event sorted, I just need the extraction)</p>
  
  <p>Thanks all.</p>