javascript onclick question
hello,
i want to prefill a form text input field with text that is contained on an HTML page.
ie.
<a href="javascript:onclick(TEXT)">TEXT</a>
Which, when clicked, will turn the input field to:
<input type=text value="TEXT">
and if they click on this link:
<a href="javascript:onclick(TEXT2)">TEXT2</a>
it wil change the text field to TEXT2, etc.
Please let me know if you guys have any suggestions.
Thanks a lot! MUch appreciated.
|