troubleshooting Question

retreive cookie values

Avatar of newbie27
newbie27Flag for United Kingdom of Great Britain and Northern Ireland asked on
4 Comments1 Solution327 ViewsLast Modified:
Hello John,

I am using the attached snippet to retrieve IDs and Titles from the cookie, first thing I am doing here is to load items from the cookie showShortList() which are stored as array [RefNo: Title] then I have to construct <li></li> like below, however, it is doing it quite right.
please can you advice me here.
   var myList = showShortList();
  for(var x=0; x<myList.length; x++){  			
		 	$('#shortlist').append('<li id="' + myList[x].theId + '_li" style="display:none;"><a href="#" class="dynAdded" onclick="removeItem(this); return false;" title="Remove">[-]</a>' +myList[x].title+ '</li>');			
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros