title: Add input text to value of checkbox in vue js
body: <p>I want to get the value of the checkbox that is checked and the input that was given by the user for that specific checkbox. I can get the value of checked checkbox the problem is getting the value of input text.</p>
  <p><strong>Issue One</strong> :It works but is there a better way of doing it ??????
  <strong>Issue Two</strong> : There are other checkbox in the form when the checkcbox is clicked a second time instead of disbling all other checkbox get clicked , when clicked third time it gets disabled</p>
  <p>Note : Noob here Please advise</p>
  <pre><code>&lt;template&gt;
    &lt;div &gt;
      &lt;form&gt;
        
        &lt;input type=&quot;checkbox&quot; v-bind:value=&quot;question&quot; @change=&quot;getAnswer($event)&quot; v-model=&quot;correctAnswer&quot; /&gt;
        &lt;label for=&quot;question&quot;&gt;Question&lt;/label&gt;
      &lt;/form&gt;
  
      &lt;div id=&quot;preview&quot;&gt;
        &lt;p&gt;Correct Answer :{{ model.correctAnswer }}&lt;/p&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/template&gt;
  &lt;script&gt;
  export default {
    data() {
      return {
        model: {
          question: &quot;&quot;,
          correctAnswer: &quot;&quot;,
        },
      };
    },
    methods: {
      getAnswer: function() {
     
        if(this.model.correctAnswer==&quot;&quot;){
           this.model.correctAnswer=this.model.question
      
        }
        else{
          this.model.correctAnswer =&quot;&quot;
        }
       
      },
    },
  };
  &lt;/script&gt;
  
  </code></pre>