I am trying to get array value from different fields with the same ID in JavaScript and use AJAX to send the data to PHP