I have a number of checkboxes which I am wanting to check if they are checked (1) or not checked (0). I want to place the results in an array so that I can send them to the serv
Take into account that the first element you write is checkArray[1], as i starts with 1, instead of checkArray[0].
checkArray[1]
i
1
checkArray[0]
Replace checkArray[i] with checkArray[i-1] inside the for bucle
checkArray[i]
checkArray[i-1]