|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Dynamic Select Box
Dear All:
Dear All: Anybody could advices me on this. On my page, there are 2 option selector. 1 for category and 1 for subcategory. The category option selector coding as below: <SCRIPT LANGUAGE="JavaScript"> function CategorySelected(form) { // dynamic subcategory select box } </script> <form name=f1 method=post action="act_uploadpic.php" enctype=multipart/form-data target=_self > Picture Name: <input type=text maxlength=25 name=pname size="50"><br> <input type=hidden name=PIC_FILE_SIZE value=100000> Category: <SELECT NAME=category ONCHANGE="CategorySelected(this)";> The tables structure to capture the category, subcategory and catedory_subcategory table as belows: category: id category description subcategory id subcategory description maincat_subcat category subcategory What i want is, when user change the category code on the option selector. It will dynamically retrieve(from DB) subcategory belong to the select category Thanks |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Dynamic Select Box |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|