In the example below im trying to attach the week number to a person dynamically. If the week number is "5" i want to write out the name "Jeppe". https://jsfiddle.net/wgw8yhnL/
That means if i add or remove a person to the "students" array it will still match values to the current numbers of persons.
var weeks = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
var students = ["Jeppe", "Tommy", "Rene", "Charlotte"];
I want to match the names, with numbers like this "Jeppe" with the numbers 1, 5, 9 "Tommy" with the numbers 2, 6, 10 "Rene" with the numbers 3, 7, 11 "Charlotte" with the numbers 4, 8, 12
Hope you can help me :)