Good Morning Helpers
I'm hoping we have a JS expert here who can help me.
I have a container which has a number of tables inside it. I'm needing to reorder these tables hen save that into a database.
I've got started, I used this to base what I have - https://www.w3schools.com/html/html5_draganddrop.asp
Currently when I drag & drop tables I get this error
index.php604 Uncaught TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'.
at drop (index.php:604:12)
at HTMLDivElement.ondrop (index.php:103:162)
Here's my code
Also when posted how could I determine the order? I was thinking of having a hidden input field with a unique ID in each, and just loop through a POST and treat them in which the order the POST is in?