hai guys, i'm undergoing practical in a system company. unfortunately i'm stuck to write code for connected dropdowns...4 dropdowns..
when the user choose the 1st dropdown, the options of 1st dropdown would be listed in the 2nd dropdown and so on for the 3rd and 4th. i was trying to search in google but all codes are for specific data@array.
what i'm doing right now,the options are from database and make me dying is there are different tables and they are related by some foreign key.
please help me.
1st dropdown: table 'product_catego ry'
2nd & 3rd dropdown: table 'product'
foreign key [product_categor y & product] = product_id
4th dropdown: table 'supplier'
foreign key [product & supplier] = supplier_id
Thank you!
when the user choose the 1st dropdown, the options of 1st dropdown would be listed in the 2nd dropdown and so on for the 3rd and 4th. i was trying to search in google but all codes are for specific data@array.
what i'm doing right now,the options are from database and make me dying is there are different tables and they are related by some foreign key.
please help me.
1st dropdown: table 'product_catego ry'
2nd & 3rd dropdown: table 'product'
foreign key [product_categor y & product] = product_id
4th dropdown: table 'supplier'
foreign key [product & supplier] = supplier_id
Thank you!
Comment