Just wondering is there a way to create a dynamic select, or in other words a select that depends on another select's selected value?
For example, I have a "Category" select and a "SubCategory" select, the sub-categories should be dynamically loaded depends on what Category is selected.
But now the SubCategory select knows nothing about the Category. Can I pass in parameters to the list() method, such as category_id to retrieve the sub-category list?
Hi,
Just wondering is there a way to create a dynamic select, or in other words a select that depends on another select's selected value?
For example, I have a "Category" select and a "SubCategory" select, the sub-categories should be dynamically loaded depends on what Category is selected.
But now the SubCategory select knows nothing about the Category. Can I pass in parameters to the
list()
method, such ascategory_id
to retrieve the sub-category list?