Modern Combo Boxes
3. Add the JavaScript
More of this Feature
The final step in setting up combo boxes in our form is to create the combo.js file. First we need the actual combo box functionality.
Now all we need to do is to add one line to the JavaScript so as to attach the combo box functionality to each combo box. You do that with one copy of the following line for each combo box just substituting the id of each input field as the first parameter.
If you changed the background colour of your combo box then you will also need to change the third parameter to the same colour as in the style sheet and the second parameter to a complementary colour that will hughlight the keyboard selection from the drop down..


