I am creating a dynamic menu of users from the database. When the user clicks on the profile I need that profile highlighted. Here is the menu of the profiles. My menu works great, I need help on how to get the elements of the menu highlighted. Thanks for the help.
function childMenu(profileId){
var path = location.pathname;
$.ajax({
type: 'POST',
url: '', //the script to call to get data
data: "method=getChildProfile&profileId="+profileId, //requirements
dataType: 'xml', //data format
success: function(xml)
{
$(xml).find('Child').each(function()
{
var proId = $(this).attr('profileId');
var lName = $(this).find('lName').text();
var fName = $(this).find('fName').text();
$("#childMenu").append("<li><a href='"+path+"?child="+proId+"&fName="+fName+"&lName="+lName+"'></a></li>");
});
}
});
}