[thelist] JavaScript help

Matthew Fischer mfischer at e-fishsolutions.com
Sat Mar 10 15:28:18 CST 2001

Link 1: <a href="javascript:document.formname.fieldname.value='foo'">

Link 2: <a href="javascript:document.formname.fieldname.value='foo2'">

Obviously replace "formname" and "fieldname" with the actual names of the form and the field.

On 3/10/01 at 9:23 PM, peter at vardus.com (Peter Van Dijck) wrote:

> Hi,
> I need some simple javascript (I know nothing of javascript I'm afraid, I 
> can just hack it) that does this: when you click on one of many links on a 
> page, a value gets put in a textfield. When you click on another link the 
> value in textfield gets replaced.
> I wouldn't ask but I know it's supposed to be simple and I need it for 
> tomorrow...
> Any ideas?
> thanks!

More information about the thelist mailing list