Forum Moderators: coopster
Item A
- Black
- Solid
Item B
- Socks
- Clothes
.. etc
In Database I have Two Tables. One for Items and One for Attributes. The ItemID from Items table is present in Attribute Table to link to attributes with a distinguished Item.
On the basis of above, I want to make two DropDows one for Items and One for Attributes, if someone select Item A from the Items Drop Down then Automcatically ONLY the Attributes related to Item A should Appear in the Attribute Dropdown.
how can i do this?
please give me your ideas on this. thanks
stu_uk is right, to handle this in PHP a round-trip request must be made to the server once a selection has been made from the first list box.
To do this client side would mean creating a JavaScript function(s) that would populate list 2 with only those valid items based on what was selected from list 1. A common task but only plausible when the lists are few and small.