js/utils.js
// select a drop down menu item
select a drop down menu item
select a drop down menu item
function selectOption(select, optval) {
  jqselect = $(select);
  jqselect.children(":selected").prop("selected", false);
  jqselect.children("option[value='" + optval + "']").prop("selected", true);
}
function selectOption ( select , optval ) { jqselect = $ ( select ) ; jqselect . children ( ":selected" ) . prop ( "selected" , false ) ; jqselect . children ( "option[value='" + optval + "']" ) . prop ( "selected" , true ) ; }
select a drop down menu item
select a drop down menu item