I just meant this.value wouldn't work to get the value, and likely other references in your myFunction would have to be changed depending on what it needs to do. I didn't have full specifics, so I was simply implying that this was only one piece to the puzzle.
I'm glad you got it figured out.