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

239
Vistas
How i can pass value vue to hidden textbox

i need to pass value from vue to textbox, doing for one day but still didn't work.

my html input type code

<input type="hidden" id="variation" name="variation" v-model="variation">

second is my is my value is appear on paragraph

<p name fs="paragraph" fw="semi-bold" color="dark">{{ getVariantTitle(variant) }}</p>

its works for passing value to paragraph but not working for passing value into hidden html textbox. i really need value for passing into form post.

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

0

I am sure there is better way to achieve what you're trying to do but for a quick fix you can try using v-bind instead of v-model

<input type="hidden" id="variation" name="variation" v-bind:value="variation">

This means the hidden text field will always have the same value as this.variation

EDIT:

<input type="hidden" id="variation" name="variation" :value="getVariantTitle(variant)">

about 4 years ago · Juan Pablo Isaza Denunciar

0

As the input type is hidden, instead of v-model just try using v-bind:value, as you don't need two way binding for a hidden input

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