Forum Moderators: open

Message Too Old, No Replies

Dropdown disable parts of page, or show options

how can i make an option in my dropdown disable parts of my site?

         

ezyid

7:38 am on Mar 11, 2006 (gmt 0)

10+ Year Member



Hello all!

I have a weard query..

On my site I have a dropdown with options A, B, C.
now option B has a secondary addition. for example:

*****
Im slecting mail services, Express, Air and Economy.
and on the Air option Track and trace can be added. This is done by a checkbox.
*****

Now I do not want my visitors to be able to use the checkbox unless they have selected option "Air"

I wish to have the button defult disabled or not even there. Then when they click on the dropdown and select the air option magically the checkbox is able to be used.

Anyone have any ideas on this one?
im kinda confused myself....

Cheers,
Steven.

kk5st

5:42 pm on Mar 11, 2006 (gmt 0)

10+ Year Member



By default, the checkbox must be there, and be active. Use javascript to disable or hide it until the appropriate select option is chosen. The script may then re-enable or show it.

The form must be fully functional w/o javascript and you should validate all entries at the server.

This is a javascript issue, now. :)

cheers,

gary