How to use a select element with multiple enabled
I just wrote this custom action which logs out the selected options the action takes an ID of the select element you want to target function getSelectedOptions (args, ctx) {
const selectDropdown = document.getElementById(args.id);
const selectedOptions = selectDropdown.selectedOptions;
console.log(selectedOptions);
}you can trigger that on a button click , for example selectedOptions is also an object , you can get the value of the selected option inside each item


.jpeg/public)