I am using this query on apex:
@RemoteAction
public static string GetUserEmail(string userid)
{
String usrid = UserInfo.getUserId() ;
string queryString= 'select Id,name,Email from User where id=:usrid';
return queryString;
}
But now I do not know how to get this id on visualpage.