By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,739 Members | 1,523 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,739 IT Pros & Developers. It's quick & easy.

Radio Buttons Direct to certain URLs - Enable/Disable features based on selections

P: 1
My form needs to (1) direct to specified URLs based on a combination of form selections and (2) enable/disable form features based on selections within the form

FORM

Radio 1
- A
- B
- C

Select Box 1
- 1
- 2
- 3

Combo selected and target URL

A1 - www.fred1.com
A2 - www.fred2.com
A3 - www.fred3.com
B1 - www.fred4.com
B2 - www.fred5.com
B3 - www.fred6.com
C1 - www.fred7.com
C2 - www.fred8.com
C3 - www.fred9.com

Text boxes ("enter data")
box1
box2
box3
box4
box5

Radio 2
- X
- Y
- Z

If combination A1, B1, or C1 is selected, then all the text boxes and Radio 2 are Enabled, but if A2, B2, C2, A3, B3, or C3 is selected, then the text boxes and Radio 2 are Enabled.

/FORM

My form is actually a little more complex than this, but this gives the basic idea.

Any ideas most appreciated - Thanks
Apr 15 '07 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
Welcome to TSDN.

Use the onclick event handler to handle selections. Then use the disabled property to enable/disable elements, e.g. see link.
Apr 16 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.