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

154
Vistas
Get Row Data from Data table having a column as input field

I have a datatable with a column with an input field. To get the data from table I'm using:

table.rows().data().toArray();

I'm getting the result array, but for the column with input field I'm getting the whole html of input field and not just the value. eg. '<input type="text" value="someValue"></input>'

How can I manipulate the code to get the value of input in result array?

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

0

table
  .rows()
  .data()
  .toArray()
  .map((el) => {
   if(el.includes('<input')){
    return el.split('value="')[1].split('"')[0]
   }
  })
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