function updateSelect() {
  $('select[name="cptList"]').select2({
    placeholder: "Select a code",
    allowClear: true,
    data: getCptArray()
  });
}
// Must use function to update select list
Must use function to update select list
Must use function to update select list
function updateSelect() {
  $('select[name="cptList"]').select2({
    placeholder: "Select a code",
    allowClear: true,
    data: getCptArray()
  });
}
function updateSelect ( ) { $ ( 'select[name="cptList"]' ) . select2 ( { placeholder : "Select a code" , allowClear : true , data : getCptArray ( ) } ) ; }
Must use function to update select list
Must use function to update select list