I can't seem to find the answer for this but how can you access an individual array element by it's index number in jQuery's each method?
Stright JS would do it like this:
for(i=0; i<myArray.length; i++)
{
if(i === 1)
{
// do something
}
}
But I can't seem to figure out how to use find the index number in the each method...?
myArray.each(function()
{
if(this[1])
{
// doesn't work?
}
}
Thank you for any help.