Hm ... wonder if I can incorporate this into some drag/drop category sorter!
I've used a more complex event script to manage complex hierarchies of software dependencies and key generation. Every drag and drop had to change several hidden field values so that they could be posted. It definitely can be done.
Not gonna lie... that seems like a shitload of code for something that seems so simple. Granted... I know nothing about coding but still. lol
Fredy Sucks Donkey Ass. Big. Donkey. Ass.
Pretty much, Eric's thing above is much more efficient and adaptable. It's like a JS library... I could use an entire library to add a div to the page, or I could add a single line. For reusability purposes, I want the library. If it's very specific, then the single line.