get People Picker value using Jquerry
var htmlReporting = $("[id$=_pplPickUser_upLevelDiv]");
var pplPickUser = $("#divEntityData", htmlReporting).attr("description");
var pplPickerUser = SP.FieldUserValue.fromUser(pplPickUser);
if (pplPickerUser.$2d_1 != undefined) {
userLoginName = pplPickerUser.$2d_1.split("\\")[1];
}
else {
alert("Please Enter Employee Name");
}
var pplPickUser = $("#divEntityData", htmlReporting).attr("description");
var pplPickerUser = SP.FieldUserValue.fromUser(pplPickUser);
if (pplPickerUser.$2d_1 != undefined) {
userLoginName = pplPickerUser.$2d_1.split("\\")[1];
}
else {
alert("Please Enter Employee Name");
}
Comments