title: SharePoint 2013 JavaScript Get Value from User (people) field
body: <p>Has anyone successfully managed to get the value of a User (Person or Group) field from the New or Edit form specifically for SharePoint <strong>2013</strong>?</p>
  
  <p>I have tried all solutions I can find from searching the internet and everything I can think of myself, all resulting in the result being blank or undefined.</p>
  
  <p>The closest I’ve got have been from the following links where the latter worked for setting the value if anyone is interested but I was unable to successfully adapt it to retrieve the value.</p>
  
  <p><a href="https://jasonscript.wordpress.com/2013/08/07/javascript-and-working-with-the-sharepoint-2013-people-picker/" rel="nofollow">https://jasonscript.wordpress.com/2013/08/07/javascript-and-working-with-the-sharepoint-2013-people-picker/</a> </p>
  
  <p><a href="http://www.sharepointcolumn.com/sp2013-setting-people-picker-value-in-newform-aspx/" rel="nofollow">http://www.sharepointcolumn.com/sp2013-setting-people-picker-value-in-newform-aspx/</a> </p>
  
  <p>My goal is to set the value only if it is empty but I can’t get the current value.</p>
  
  <p>Looking in the DOM there are numerous HTML elements which have attributes containing the value but using JQuery to retrieve those attributes results in blank or undefined. I have confirmed I have the correct object with the title or id attributes. There is one HTML element where the title attribute has the value and still the JQuery returns blank or undefined in that particular case.</p>
  
  <p>Thanks for any assistance you may be able to give.</p>