how to get values from 2 dropdown in javascript?

newbie here. I was wondering if you can help me figure this out. How do I get the array of dropdwon values and pass that value into js. I have only 2 values coming from the database which is the from (date started) and To (date ended). made a loop to display the date range.

front-end

Front-end view

here is my script

script

how do I loop so that it will return the specific value for each dropdown value?

thanks in advance

tried to have displayed the value of the dropdown I have chosen, however I am supposed to get the vaue per cell. what happened was I can only get whatever value I have chosen first and not on per cell