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

124
Visualizações
Grabbing form value by the className on button Click from Form

Is there a way where i can grab the row values with the same className of the button in each row and set the values into the correct useState variables?

The code for the tds is as built as following:

const postsOffCountry = <td>{props.posts.map((post => (<input key={post.rowid} defaultValue={post.lcountry} className={post.ref}
onBlur={(event) => props.variables.setLoadingCountry(event.target.value)}></input>)))}</td>;

const postsUpdateButton = <td>{props.posts.map((post, i) => (<button key={i} className={post.ref} onClick={(event) => {props.variables.update(event.target.id);}}>Update</button>))}</td>;

i have multiple postsOffCountry like consts but just with diffrent data.

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