How do you insert a row in a table with data cells before the previous one.
My site is a "crypto mining game (kinda)". I have a dropdown on the site, when you select an option and click "start", a progress bar loads and then adds a new row to the table with the information you selected on the dropdown. However I want it to add a new row with the data cells before the old one.
Here's what my code to add the rows looks like:
And here's the entire function I made to do that: