I have a popup link next to a field. The popup has a list of names of people that show as links. If a user clicks one of the links (people names) I want that name to go into the field. How do I do this?
Thanks!
James
Printable View
I have a popup link next to a field. The popup has a list of names of people that show as links. If a user clicks one of the links (people names) I want that name to go into the field. How do I do this?
Thanks!
James
Using Javascript is probably your best bet.
If your input field is defined something like as follows
you can use the following javascript to enter text into itHTML Code:<input type="text" name="name" id="nameInput" />
Code:document.getElementById("nameInput").value = "Hello";
I know how to do a document.getElementById("nameInput").value. I need a way to move the value from the popup to the field on the original field.
Your answer doesn't resolve my problem.
Thanks!
Well what is the "popup"? Can you show me the page or the code for it?
http://www.webreference.com/programm...t/jf/column11/
This might be a reference for you to achieve that.