我想使用以下函数更新 p_fullname 并将数据放入多选下拉框中:
function update_project_group(pg_id,pg_group_name,p_fullname){
document.getElementById('pg_id').value=pg_id;
document.getElementById('group_name').value=pg_group_name;
document.getElementById('projectmember').value=p_fullname;
var array = p_fullname;
var dataarray=array.split(",");
$("#projectmember").val(dataarray);
$('#projectmember').multiselect( 'settings', { columns: 2});
}