Currently seeking assistance in extracting a value from a v-for loop. Can someone provide guidance on this matter? Below is the code I am working with:
Select Country:
<select @change="selectCountryStats(country.code)">
<option
v-for="country in everyCountry"
:key="country.name"
value="country.name"
>
{{ country.name }}
</option>
</select>
My goal is to capture the value of country.code
within the @change event, however this value is not available until the v-for loop is executed.
If anyone has a solution to this dilemma, I would greatly appreciate it.