I have a global JavaScript array that contains some strings.
I want to create a dynamic list based on the strings in my JavaScript array. Similar to this:
var $bread = $('ul.xbreadcrumbs');
$.each(yourArray, function(index, value) {
$('- ' + value + '
')
.appendTo($bread);
});
I have not tested this - just off my head. Hope this helps!