I have built a display template. In the item template I have some Images from the list "Employees". I have created a function to get some detail info. In this function I have one parameter with the id from the selected item from "Employees". Now I would like to get an item from another list "EmployeeDetailInfo". In this list there is a lookup field to the "Employees" list. I would like to get an item from this list by the listItemID. How can I do this in a function?
function GetDetailInfo(itemID) {
[some logic to get item from the list "EmployeeDetail"]
var title = .....
alert(title);
}