Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: select box


Message #1 by "Morgan, Rob" <Rob.Morgan@o...> on Fri, 9 Mar 2001 10:29:52 -0500
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!
> 

  Return to Index