I would like to target the first through fourth elements within multiple arrays. I know how to do so with javascript but what the equivalent be in jquery?
var diags = [
[0, 7, 14, 21],
[1, 8, 15, 22],
[2, 9, 16, 23],
[3, 8, 13, 18],
[4, 9, 14, 19],
[5, 10, 15, 20],
[6, 13, 20, 27],
[7, 14, 21, 28],
[8, 15, 22, 29],
[9, 14, 19, 24],
[10, 15, 20, 25],
[11, 16, 21, 26],
[12, 19, 26, 33],
[13, 20, 27, 34],
[14, 21, 28, 35],
[15, 20, 25, 30],
[16, 21, 26, 31],
[17, 22, 27, 32],
[18, 25, 32, 39],
[19, 26, 33, 40],
[20, 27, 34, 41],
[21, 26, 31, 36],
[22, 27, 32, 37],
[23, 28, 33, 38],
];
function diagnolWin() {
for (var j = 0; j < diags.length; j++) {
var optionOne = slots[diags][j][0];
var optionTwo = slots[diags][j][1];
var optionThree = slots[diags][j][2];
var optionFour = slots[diags][j][3];