I would like to use Javascript to automatically select the items in a select menu after they have been loaded. I have tried the following code, but it did not work.
$.each(data, function(index, value) {
Apperyio("messsage_select option[value = " + value.member._id + "]").attr("selected", true);
Apperyio("message_select").selectmenu().selectmenu("refresh", true);
});
Your help will be greatly appreciated.
Thank you.