I'm using the Bootstrap Multiselect library:
$("select#final option[value='" + data[0].final + "']").prop('selected', true);
$('select#final').multiselect("refresh");
As the code above I want to select a particular option
of select
. Being that does not work. If I copy the code and run the console it works.