My goal is to set the respective input field to a specific value when a checkbox is checked. Below is an example of what I am trying to achieve.
<label class="checkbox-inline">
<input type="checkbox" name="favoriteColors"> Five
</label>
<label class="checkbox-inline">
<input type="checkbox" name="favoriteColors"> Ten
</label>
<input type="text" name="color" id="clr" ng-model="color" readonly />
When the user checks the "Five" checkbox, I want the input field to display the number 5
. Similarly, if the user checks the "Ten" checkbox, the input field should show the number 10
.