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...