I need to push values which i am getting from database to multi select.Below code will push data to text area based on onchange in select.I need to change text area to multi select.How to achieve this? Calling below method like
HTML
<select id="select-execution-group-update" class="form-control" onchange="getParamListForCustomGroupUpdate()">
//JS file
function getParamListForCustomGroupUpdate() {
var selected_execution_group = document.getElementById("select-execution-group-update").value;
$.ajax({
method: "GET",
dataType: "text",
url: "getObjectList",
data: {
execution_group_name: selected_execution_group
},
success: function (result) {
result = result.replace(/\\/g, "");
document.getElementById("object_custom_name").value = result;
}
}
);
}