Get Value from People Picker Using Jquery

Hi Folks,
Here at My Client Place they want to set value from People Picker to Other control.
Lets Say u have Field called Employee with People and Group as Field Type so it will render with People Picker Control.

Once You Enter Name and hit Enter it will store value like this domain\name now i want to get name from this and  set it to JM ID Field on Focus() Event.

I tried to Set on People Picker blur event but i did not get success.

here is jquery for that

<script src="/JSLibrary/jquery-1.3.2.min.js" type="text/javascript">
<script type="text/javascript">
$(document).ready(function() {
$("input[title='JM ID']").focus(function()   {
var User = $("textarea[title='People Picker']").val().split("\\");
$("input[title='JM ID']").val(User[1]);



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s