Hello! I'm having trouble using a multiple select field with a choseen-select plugin in a form link
<form id="cadastro" action="process_teste.php" method="post">
<select id="form-edit-selecionar" name="fornecedor[]" data-placeholder="Fabricantes" style="width:330px;" multiple class="chosen-select" tabindex="2">
<?php while($row2Fnc = mysqli_fetch_assoc($result2Fnc)) :?>
<option value="<?=$row2Fnc["id"];?>"><?=$row2Fnc["blablabla"];?></option>
<?php endwhile ?>
</select>
<button type="submit">Enviar</button>
$.getJSON('process_forn.php?valor='+data, function (dados){
var options_val = [];
for (var i = 0; i < dados.length; i++) {
options_val += dados[i].id;
}
$("#form-edit-selecionar").val(options_val);
alert(options_val)
});