js/utils.js
// add a drop down menu item
add a drop down menu item
add a drop down menu item
function addSelectOption(select, optval) {
  var opt = document.createElement("option");
  opt.innerHTML = optval;
  opt.value = optval;
  opt.setAttribute("name", optval);
  select.appendChild(opt);
}
function addSelectOption ( select , optval ) { var opt = document . createElement ( "option" ) ; opt . innerHTML = optval ; opt . value = optval ; opt . setAttribute ( "name" , optval ) ; select . appendChild ( opt ) ; }
add a drop down menu item
add a drop down menu item