onClick of an item it adds an attribute. Only three items can be selected so they'll only ever be three elements on the page with the attribute like : data-selected: 1, data-selected: 2 or data-selected: 3.
if ($('.item').attr('data-selected', '1') || $('.item').attr('data-selected', '1') ||
$('.item').attr('data-selected', '1')) {
}
I can do an if statement to check if an element has an attribute, how do I check if all the elements with .item class have an attribute and if not then do something.