I'm looking to retrieve the selected item(s) from a select control along with their values or titles. Once the user has made their selections from the dropdown menu, I want to be able to determine the number of items selected and display their titles or values.
Below is a snippet of the HTML code on my page:
<select ng-model="selectedValues" multiple>
<option >All Booth</option>
<option> Washroom</option>
</select>
<button ng-click="apply()" type="button>Apply</button>
Here's an example of the code in my controller:
$scope.apply = function () {
// Retrieve the number of selected items and their titles or values
}
Any suggestions on how I can accomplish this? Thank you.