I want to create a loop (the result will be inserted into javascript)
Syntax:
- The first number is the day (Monday - Friday/1 - 5)
- The second number is the hour (1 - 11)
So this is finally what the loop should return:
subject_1_1: $("#subject_1_1").val(),
subject_2_1: $("#subject_2_1").val(),
subject_3_1: $("#subject_3_1").val(),
subject_4_1: $("#subject_4_1").val(),
subject_5_1: $("#subject_5_1").val(),
subject_1_2: $("#subject_1_2").val(),
subject_2_2: $("#subject_2_2").val(),
subject_3_2: $("#subject_3_2").val(),
subject_4_2: $("#subject_4_2").val(),
subject_5_2: $("#subject_5_2").val(),
subject_1_3: $("#subject_1_3").val(),
until
subject_5_11: $("#subject_5_11").val()
The last element shouldn't have a comma.