Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

236
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda