It seems all my items in 'titlesArray' are all at 0 index
$('.main ul li h3').each(function(){
var titles = $(this);
var titlesArray = jQuery.makeArray(titles);
$.each(titlesArray, function(index, value){
document.write(index);
});
});
document.write(index); outputs "00000"
There are 5 objects within that array, here is the html code
<ul>
<li>
<h3>Viral Advert</h3>
</li>
<li>
<h3>bannar</h3>
</li>
<li>
<h3>movie</h3>
</li>
<li>
<h3>photo</h3>
</li>
<li>
<h3>movie</h3>
</li>
</ul>
Shouldn't my array indexes be 1,2,3,4,5?