<Select id="chkProduct" multiple="true" class="form_input1" placeholder="Product">
<option selected disabled>Product</option>
</select>
$(function () {
$(document).ready(function() {
var hi = window.localStorage.getItem("rohil");
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: 'http://202.71.16.74/news/Service.svc/GetContactData',
data: '{"ContactID":"' + hi +'"}',
dataType: "json",
processData: false,
success: function (data) {
$("#branchname").val(data.d.Data[0].BranchName);
$("#add1").val(data.d.Data[0].Address1);
$("#chkProduct").val(data.d.Data[0].Product);
},
error: function (result) {
alert("Error");
}
});
});
});
above is the image i want to get checked checkbod after getting the value in string (i.e aa,dd,ee)
want value aa be checked ,dd be checked