I've looked up many solutions online before, but either they didn't work or required a page refresh. Yesterday, I modified an old piece of code that needed a page refresh to select a row, and it turned out to be quite useful. I'd like to share it with everyone. If there are any areas for improvement, feel free to point them out!