Currently, I am in the process of learning Vue and have taken on the task of creating a basic tax calculator. The challenge is to display the result in real-time without requiring a "show total value" button. Everything seems to be functioning well except for one issue - I have a select element where ideally, both the type of tax and the value should be visible. However, I am only able to make it work with just the value being displayed.
<select ref="taxEs" class="form-control" v-model="settings.tax" @change="saveChanges()" onfocus="this.select()">
<option>tax1, 6.25%</option>
<option>tax2, 8.90%</option>
<option>tax3, 8.25%</option>
<option>9.25</option>
At the moment, only the last option (9.25) is functional. My question is, how can I include the description while ensuring that Vue utilizes only the value? Your insights would be greatly appreciated.
Thank you.