How can we get the selected picker value in controller and do the validation of the selected value.
View:
<Picker id="countryPicker" class="picker">
<PickerRow title="Select a Country"/>
<PickerRow title="India"/>
<PickerRow title="China"/>
</Picker>
Controller:
var countryname = $countryPicker.value();
alert("country: "+ countryname);
$.planWin.open();
Did validation done in controller or some other module?