We are using PqSelect multiselect with checkboxes. I am able to get the selected values as an array if id's. I want to select items of pqselect using an array of id's I am getting from my DB. How can I do that?
Code Snippet:
//To Get
var agencies = $('#ddlAgencies').val();
//output [12,23];
//To Set
var agencies = [12,23,34];
$('#ddlAgencies').val(agencies);
When I Set pqSelect using above statement it doesn't give me any error but do not select the desired values