/* For each element, create a new DIV that will contain the option list: */ b = document.createElement("DIV"); b.setAttribute("class", "select-items select-hide"); for (j = 1; j < ll; j++) { /* For each option in the original select element, create a new DIV that will act as an option item: */ c = document.createElement("DIV");
Using the * CSS selector you can style the options inside the box that is drawn by the system. Style select options with CSS. CSS Web Development Front End Technology. To style the options in