|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Entering text into a texfield by clicking a link?
Hi there,
I would like to enter several entries in a database to a textfield by clicking on several links. Really, what I'm doing here is letting the user select from his/her addresses (by clicking on the addresses) and then populating the "To:" field with those addresses. Can anyone help? |
|
#2
|
|||
|
|||
|
RE: Entering text into a texfield by clicking a link?
try:
<a onclick="document.formname.fieldname.value='input'> |
|
#3
|
|||
|
|||
|
RE: Entering text into a texfield by clicking a link?
Hmm, I'm afraid that didn't work...
|
|
#4
|
|||
|
|||
|
RE: Entering text into a texfield by clicking a link?
what about it did not work?
|
|
#5
|
|||
|
|||
|
RE: Entering text into a texfield by clicking a link?
Ok, I'm probably not doing it correctly:
<a onClick="document.mail.to.value=stuff">stuff</a> Do I need "a href"? |
|
#6
|
|||
|
|||
|
RE: Entering text into a texfield by clicking a link?
yes, just add the href like so
href="#" this will cause the link not to go anywhere when clicked. |
|
#7
|
|||
|
|||
|
RE: Entering text into a texfield by clicking a link?
also put stuff in single quotes like so
onClick="document.mail.to.value='stuff'" |
|
#8
|
|||
|
|||
|
RE: Entering text into a texfield by clicking a link?
Thank you, that works perfectly.
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Entering text into a texfield by clicking a link? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|