Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

187
Vistas
(Vue js) change the vue data by click the button

I would like to click the button and change the vuejs data in formdata.eventname. But it does nothing after I click the button

Moreover, I don't know how to use vue.js in stackoverflow. If you know it, plz help me to edit the question

< script src = "https://unpkg.com/vue" >
<script >
  new Vue({
    el: "#app",
    data: {
      total: parseInt("<%= total %>"),
      events: [],
      current: 1,
      perPage: 2,
      rangeBefore: 1,
      rangeAfter: 1,
      order: "",
      size: "",
      isSimple: false,
      isRounded: false,
      prevIcon: "chevron-left",
      nextIcon: "chevron-right",
      formdata: {
        eventname: "eventname2",
        organizer: "",
        starttime: "",
        endtime: "",
        venue: "",
      },
    },
     methods: {
      submitform: async function () {
        this.formdata.eventname = "eventname1";
      },
  }); 
</script>
<button class="button is-link" @click="submitform()">Submit</button>

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I make a stupid mistake. I didn't put the button inside the app.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda