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

159
Vistas
Adding input field text to a specific input id

I have a page with different categories and for each category, I can add a subcategory by toggling an input field and adding text. If i toggled the input field for two or more categories and i click at one of the input fields and start adding text - the text i enter is showing in all the toggled input fields. How can i limit so that what i enter as text is just limited to the category i am typing in?

Example:

h5 Topics
button.btn.btn-outline-primary.px-5(@click='toggleAdd('addTopics',ref='addTopics') Add
#addTopics.collapse
   input.form-control(type='text', aria-label='Add Topic', v-model='fieldValue', @blur='addInformation("addTopics")', v-on:keyup.enter='$event.target.blur()', ref='topic')

h5 News
button.btn.btn-outline-primary.px-5(@click='toggleAdd('addNews',ref='addNews') Add
#addNews.collapse
   input.form-control(type='text', aria-label='Add News', v-model='fieldValue', @blur='addInformation("addNews")', v-on:keyup.enter='$event.target.blur()', ref='news')

h5 Stories
button.btn.btn-outline-primary.px-5(@click='toggleAdd('addStories',ref='addStories') Add
#addStories.collapse
   input.form-control(type='text', aria-label='Add Stories', v-model='fieldValue', @blur='addInformation("addStories")', v-on:keyup.enter='$event.target.blur()', ref='stories')

If I toggled all three inputs and then I clicked in the topics input and started typing ... the text i am entering is also appearing in the other two input fields. I know it is probably because i have the same v-model for all of them but that is something intentional. Is it possible to restrict the text entry to an input field by the input id?

about 4 years ago · Juan Pablo Isaza
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