Forum Moderators: mack

Message Too Old, No Replies

automatic form selection

form selection

         

rdunne

7:26 pm on Mar 18, 2007 (gmt 0)

10+ Year Member



I have to selection forms side by side. By selecting an item in one form, I want to be able to automatically select a corresponding entry in the selection form beside it, and vica versa. I am trying do this in javascript with getElementById(), without much luck. Has anyone seen any exanples of this in practice, if at all?

coopster

1:21 pm on Mar 19, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Certainly, and with the same process you describe. You monitor the handler on each item and execute your process upon firing of the even handler. Using the element's unique identifier is a common way to locate and work on the associated element.

rdunne

3:14 pm on Mar 19, 2007 (gmt 0)

10+ Year Member



my only problem is I am not sure how to do it. I found the getElementById() function through searches, but have no idea how to implement it.

MetaFunk

3:23 pm on Mar 19, 2007 (gmt 0)

10+ Year Member



You will need Javascript code for this. Google your query and you should get quite a few examples.

M,