Im creating X tables with dataTable and Tabledit with a loop, the main example i took it from https://www.webslesson.info/2020/05/make-editable-datatable-using-jquery-tabled