how to get all values from multiselect dropdown in aem?
hi , I am trying to access the selected values in AEM but only able to access the first value of the multiselect field
for e.g:
var allRegionFields = document.querySelectorAll("coral-select.regionselect");// all multiselect fields i.e-3
for(var i =0;i<allRegionFields.length;i++){
console.log("validator call: ",allRegionFields[i].value); //it's returning only the 1st value selected in the multiselect
}
how can I get all values for the multiselect dropdown