I need when i will be checked the check box the respective input field will have the required value. Let me show my code below.
<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 />
I need here when user will check the Five the input field will get 5 and when user will check Ten,the input field value will be 10.
FiveandTenare checked?