JS allows use to do soemthing like :
document.<form name>.<field name>
to get access to the objects, but I think that you may find that
changing the bg colour of the link will be limited to at east the newer
browsers if not just IE5.
> -----Original Message-----
> From: Rob.Morgan@o... [mailto:Rob.Morgan@o...]
> Sent: 09 March 2001 15:30
> To: javascript@p...
> Subject: [javascript] select box
>
>
> I'm new to JavaScript and I'm trying to figure out how to do
> something.
> Maybe someone here can help?
>
> I have a page with a drop down box (selections are 0,1,2,3)
> and next to the
> box I have a link. I want to be able to click on the link
> and change the
> background color of the link and also change the selection in
> the drop down
> box from 0 to 1, 1 to 2, 2 to 3, 3 to 0 each time a person
> click on the
> link.
>
> BTW - on the page are 80 or so boxes like this, each one having a link
> beside it so, some dynamic function would he helpful.
>
> Can anyone help?
> Thanks!
>