<div v-if="result.length" style="clear:both">
<div v-bind:key="item.id" v-for="item in result">
<div class="ui form">
<div class="field">
<label>Content</label>
<textarea name id cols="30" rows="10">{{item.content[0]}}</textarea>
</div>
<div class="field right aligned">
<button v-bind:id="item.id" @click="updateData" class="ui primary button">Update</button>
</div>
</div>
</div>
have this iteration, id like to access to the value of 'current' text area on updateData function call. I thought assigning id to textarea input as $ref but seems kid of off. Ayn help is appreciated, thanks!
$ref, you have to useref="..."on the element, as shown here: [what's the real purpose of 'ref' attribute?](stackoverflow.com/questions/44063606/… )