How do I get value from ClientPeoplePicker
using JQuery. I have tried below code, but not getting the results.
function getPickerInputElement(identifier) {
var tags = document.getElementsByTagName(‘DIV’);
for (var i=0; i < tags.length; i++) {
var tempString = tags[i].id;
if ((tempString.indexOf(identifier) > 0) && (tempString.indexOf(‘UserField_upLevelDiv’) > 0)){
var innerSpans = tags[i].getElementsByTagName(“SPAN”);
for(var j=0; j < innerSpans.length; j++) {
if(innerSpans[j].id == ‘content’) {
return innerSpans[j].innerHTML;
}
}
}
}
return null;
}