dimanche 27 octobre 2019

React:How to display text in textarea from selected checkboxes?

Dears, How to display text from selected checkboxes in textarea? In Vue.js it was easy but whats the simplest way to do it in React? Thank you for the answers!

Below you can find a example i made in Vue i want to make something similar in React.

<template>
<div class="custom-checkbox">
<input type="checkbox" v-model="resolved" class="custom-control-input" id="customChk8" value="Ticket Resolved">
<label class="custom-control-label" for="customChk8">Ticket Resolved</label>

<textarea></textarea>

</template>

<script>
export default {
  name: 'solvedcases',
  data () {
    return {
      isSelected: [] , 
      show: true
    }
  },
  methods: {
    click () {
      // do nothing
    },
  }
}
</script>



Aucun commentaire:

Enregistrer un commentaire