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

85
Vistas
How do I change position of button with insertion of a new row in html table dynamically?

I want my button to shift its position down, everytime I create a new row in my table (using table.insertRow()). This is my code:

document.getElementById("add").addEventListener("click",function(){
    var row = table.insertRow(table.rows.length); //adds new row to the table on button click
})

Now, I have a button

<button id="change">Update</button>

I want this button, to keep on moving down everytime I press the add button to insert new rows in my table, such that the button remains below the table. How do I do that? Please help me.

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