Help w/ Dialog
Hi! Can anyone help me w/ my Dialog issue?
Whenever the dialog is closed via the "Submit changes" button, it should change the correct line
I was giving it some thought and all that I could think of is putting an identifier in the creation and hide it so I can call upon the position in the table, for example like this
<p class="hidden">${locationInTable0based}</p>
I do hope there is a better way tho, any ideas?
First image is to clarify a bit what my intend is, the second & third show js and html respectively
(Wijzig = "edit" in img 1)2 Replies
give each tr a data-id: (for example the hope-code) and give each td a data-key with the column name.
in the onclick function you can pass the id
after changing everything, you can queryselect by tr[data-id=""] > td[data-key=""] and update the innerText
ahh okayy, thanks