.unique explanation?
.unique explanation?
-
$(document).ready(function () {
$('<div></div>').appendTo('#newsHoldingPanel').load('news.asp?newsSectionid=8&NoOfNewsItems=5 .listStyleRMnews li');
$('<div></div>').appendTo('#newsHoldingPanel').load('news.asp?newsSectionid=2&NoOfNewsItems=5 .listStyleRMnews li');
$('<div></div>').appendTo('#newsHoldingPanel').load('news.asp?newsSectionid=13&NoOfNewsItems=5 .listStyleRMnews li');
});
Hi,
I've got a list of various news sources being aggregated into one <ul> - can anyone tell me how I can remove any duplicated items in this list? (ie if there is more than one link to the same news article).
I've looked into the .unique function, but not sure if this will do this or whether it's just looking at the html elements, rather than the text within them.
Any help much appreciated!