I am new to vues. I am trying to create nested text fields at runtime on a button click event. Please check the jsfiddle link for a better understanding
https://jsfiddle.net/avi_02/qLqvbjvx/
Suppose this is the way to understand the problem.
++
→ It generates MainTextBox
+
→ It generates SubTextBox
When I click ++
, then a new one MainTextBox
generates a link +
for SubTextBox
But when I click +
to create SubTextBox
, then it is generated by everyone else MainTextBox
.
I want to generate SubTextBox
for relevant MainTextBox
only for other main text fields. Follow the jsfiddle link for a visual understanding.
source
share