I'm meeting a problem with getting input value from sharepoint people editor via js.
usually, we can get value from this control via below codes:
var user;
var pe = document.getElementById('<%=peStaffAccount.ClientID %>').getElementsByTagName('div');
var i;
var peopleEnt;
for (i in pe) {
if (pe[i].id != null) {
if (pe[i].id == 'divEntityData' && pe[i].description != null) {
peopleEnt = pe[i]
}
}
}
// this is the value from this textbox but only after we click checked user
alert(peopleEnt .description)
my question is, when i input some value into this textbox directly, how can I get this value?
refer to below image, my input value.. I want to get this...