Okay maybe this is easy and I'm just entirely missing the concept, but since I urgently need it and can't figure it out, it's a 500.
I know that we can do this :
but is there a way to get this with getElementById?
I have an array of elements named HR for regular hours, but i'd like to get their values through a loop to calculate totals.
I tried doing document.getElementById('HR')[#].value but it gives an error.