How can I do this?
You create an instance of a manager object by using PeopleManager class in JSOM SharePoint 2013.
In SharePoint 2010 and 2007, you can use SPServices library.
The Above is the code used.
I want manger in alert. Version of the sharepoint Microsoft SharePoint Server 2010 not foundation.
@Falak Mahmood. Please help. I am getting this exception in google chrome