dynamic radio button default state via change of selected index
Posted on 2007-10-08
I need to be able to change the selected state of a radio button named "price_type" when a user selects a certain value from a drop down menu item. For example if the user chooses "services" for the drop down menu the radio buttons appear as "per hour", and "total" with total selected as default.... but if the user chooses "housing" from the same drop down menu, the radio options are now "per month", and "per semester" with per month selected as default.
I have already gotten the correct radio buttons to appear when the menu item is selected, but i need to be able to change the state of the defaulted selection to help validate the form.
Thanks fir any help.