referencing a dynamically generated element in javascript [closed]

view full story

http://serverfault.com – wrote a program to encipher / decipher a plaintext / ciphertext in Javascript. One goal of the program is for a user to be able to assign a mapping of letters from the cipher text to letters of a potential plaintext. What I had originally tried to do was automatically generate the the list from a simple array containing the alphabet. The function generates the desired html, but when I use the decode() function, I can't reference the input values from the elements I created. For now, I just cut and pasted html for the mapping feature manually (which works), but I really don't want to do it that (HowTos)