Good morning, I have a request that I can not find anything like this.
When you click on the select, it sends a request to the javascript and fills in the data, and when filling in, I need that data to appear.
To fill, fine, it works fine, but open the select shortly after, it is not going out.
I've tried something like this
//preenche os dados
$.each(dados, function (i, d) {
$('<option>').val(d.Id).text(d.Descricao).appendTo(selectbox);
});
//abre os dados preenchidos
selectbox.show().focus().click();
This code above was the maximum I found to open a select but it did not work.