Level 63
You need to add : before value so that the content ````q.category_id``` is the variable content and not the text.
:value="q.category_id"
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Using vue3 how to assign value to input field in for loop
<div v-for="(q, index) in questions">
<BreezeInput
id="category_id"
type="text"
value={{q.category_id}}
class="mt-1 block w-full"
v-model="form.category_id"
/>
</div>
You need to add : before value so that the content ````q.category_id``` is the variable content and not the text.
:value="q.category_id"
Please or to participate in this conversation.