This version is old school.
Please find jQuery plugins on npm.
Dropdown List Plugin
by Bryan Cua
$.dropdown creates dropdown lists separated by group. As with popup, only one dropdown of each group can be shown at one time. As the entries do not need to be rendered at start, large tables should render quicker than if <select> is used.