No need to use jQuery if you just want to iterate through an array. A normal JavaScript for
loop will do just fine.
for(var i=0;i<weekdays.length;i++){
console.log(weekdays[i]); //logs the i'th weekday
}
If you want to start at a specific week day you can do
var today = 2; //Tuesday
var numDays = weekday.length;
for(var i=0;i<numDays;i++){
console.log(weekday[(i+today) % numDays]);
}
Fiddle
Fiddle starting with today
What we do is use the modulus operator which represents the remainder. If you are unfamiliar with it, think about it like time in a clock. You're wrapping values (days of week) here (like in a clock).