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

123
Vistas
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 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