How to access the data-opened property of each div that is inside an array?
<div class='bares' data-opened=1></div>
<div class='bares' data-opened=2></div>
<div class='bares' data-opened=3></div>
<div class='bares' data-opened=4></div>
var bares = new Array();
$('.bares').each(function(){
bares.push($(this));
})
for (i = 0; i <= bares.length; i++){
// como exibir alert da propriedade data-opened de cada div ?
}