I'm having trouble explaining this problem but I think I can with examples.
I want a code that will be able to do the following:
There is a question, "Do you want color?" and there is two radio buttons, O "Yes" and O "No".
When you click on "Yes", a group of radio buttons below is revealed: O "Red" O "Blue" O "Green"
I would like "Red" checked by default.
When you click "No", a group of radio buttons below is revealed: O "Black" O "White"
I would like "Black" checked by default.
Now, on each color there is an onclick="" event. When you click on "Yes" then the onclick event for "Red" should be run (used to calculate a price using Java Script) without having the user to click "Red"
I would also like it for when the user clicks on "No" the onclick="" event for "Black" should be run without the user having to click "Black"
Here is an example of this working: http://www.ibuypower.com/ibp/store/configurator.aspx?mid=224
When you scroll down to "CD/DVD Drive" section "LG 20X Dual Format/Double Layer DVD±R/±RW + CD-R/RW Drive" is selected by default. Then you can click "16x DVD-ROM Drive" and then it runs the onclick event for the default value "Beige" which calculates the price.
Here is my page I am trying to get this working on: http://buildmethebest.com/intel_customdesktop.php
It is under the Power Supply section. 500W is checked by default and then when you click on 530W it doesn't automatically run the onclick event for the radio button underneath it.
I want some way to run that event whether it be onclick or whatever without requiring the user to click the actual button.
I hope this explains my problem and what I am trying to do without being too overly complicated because I think it is a relatively simple fix. Thanks a million.