I want to do some operation based on the user entered in the people picker control.
My code is:
$(document).ready(function () {
$("input[title='Project Owner']").focusout(function () {
//var User = $("textarea[title='People Picker']").val().split("\\");
//user = $.trim($("#Project Owner").text());
//var user = $().SPFindPeoplePicker({
// peoplePickerDisplayName: "Project Owner"
//});
alert("Hello");
var user = $(this).val();
alert(user);
});
});
The foucusout() event runs perfectly but I am not getting the user name. What should I do?