I have the select menu with no elements.
<select id="m1-addmeal-hidden-select-selectList_Food" name="selectList_Food" multiple="true"></select>
I am trying to use the code as from the help from other topics on the forum.
$('select[name="selectList_Food"]').append(new Option("option 1", "1"));
also
$('select[name="selectList_Food"]').html("<option value='1'>Some oranges</option><option value='2'>More Oranges</option><option value='3'>Even more oranges</option>")
But a new item under select item as options is not getting added.
Kindly suggest the correct solution. Thanks