Page 1 of 1

disabling items in combo box using php or java script

Posted: Sat Mar 19, 2005 7:17 am
by ananth_ak
hi,

i have two combo boxes 'area' and 'action'.
when a specific area is selected - items related to the area are enabled in the action combo box.

does anyone have any solutions for this in php/ javascripting?

Posted: Sat Mar 19, 2005 7:53 am
by n00b Saibot
can be done either way. attach an onchange event tothe combo box and then

PHP - submit the form and then write out the valid options thru PHP.
JS - dynamically add/remove options as may be correct for particular choice.

Posted: Sat Mar 19, 2005 9:25 am
by feyd
read CoderGoblin's tutorial... in the tutorial section.