disabling items in combo box using php or java script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ananth_ak
Forum Newbie
Posts: 23
Joined: Wed Feb 09, 2005 12:42 pm
Location: uk, london
Contact:

disabling items in combo box using php or java script

Post 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?
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

read CoderGoblin's tutorial... in the tutorial section.
Post Reply