When an option is selected in HTML Select DropDownList then the GetValue function of the Controller gets called. Inside the function, first the selected Value is fetched from the ng-model attribute and the selected Text is fetched from the JSON array using jQuery grep function.