Newbie: learning by example

S

shaab mohagir

Hello,

I'm new to javascript and i would like to do the following:
I need to show and hide forms or probably individual components
(buttons, text boxes), upon a user selection from a combo box.

For example: each entry (option) in the combo box has a group of
buttons and text boxes assosiated with it. when the user selects any
of these options, I need to "hide" all currently displayed components
(buttons, textboxes etc.)) and "show" only the ones that correspond to
the combo box current selection.

BTW, it will be nice if we don't have to reload the hole page each
time a combo box selection is made, just the frame or whatever
container that has the changes should be reloaded.

Is that easy to do, and pardon my mixed terminology.

Thanks for any help.
 
D

David Dorward

shaab said:
I'm new to javascript and i would like to do the following:
I need to show and hide forms or probably individual components
(buttons, text boxes), upon a user selection from a combo box.

HTML doesn't have a combobox control, only select elements (usually
presented as drop down menus) and text inputs (a combobox is a combination
of a text input and a drop down menu).

Assuming you mean a select element, see:
http://evolt.org/article/Accessible_Interdependent_Select_Boxes/20/60163/index.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,077
Messages
2,570,566
Members
47,202
Latest member
misc.

Latest Threads

Top