Im using angular to bind a dropdown to preview the value and label at the end of a page:
<select name="studyType" ng-model="studyType" class="form-control">
<option value="1"> Clinical Trials </option>
<option value="2"> Compassionate </option>
<option value="3"> Other </option>
</select>
at the preview section im using:
Study Type: {{studyType}}
to display the selected option.
For example: when Clinical Trials is selected, the output is:
Study Type: 1
Is there any way to make the value and the label printed together like:
Study Type: 1 - Clinical Trials