I want to get a list of items in a page and push them into an array:
$('#softwareUpdates article').each(function(index) {
productList.push({
class: $(this).attr("class"),
text: $(this).attr("su_title")
});
});
HOWEVER I want to avoid multiple items, so when I current check the productList array I have:
Item 1, Item1, Item 2, Item 3, Item 3, Item 4
What I would like to have is:
Item 1, Item 2, Item 3, Item 4