problem description
selectisze.jsaddOption option
the environmental background of the problems and what methods you have tried
selectisze.jsaddOption option selected
if(sel_name == "owner"){
// $("-sharpowner").attr("disabled",true)
$.each(dataArr, function(i, item){
$("select[name=""+sel_name+""]").selectize()[0].selectize.addOption({ title:item,selected: "true"})
});
related codes
/ / Please paste the code text below (do not replace the code with pictures)
this is the html section
<div class="form-group row">
<div class="col-sm-4">
<label><span class="pref-star">*</span>Owner</label>
<select name="owner" id="owner" data-required="true" multiple="multiple">
</select>
</div>