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

231
Vistas
How to hide specific HTML table column?

I have a dynamically made HTML table. I want to hide one of the columns with style.visibility = "hidden"

The cell i want to hide is provided with the needed ID, but when i do this my whole table disappears.

// get element ID & set to hidden
document.getElementById('wachtwoord')!.style.visibility = 'hidden'

// set ID of the cell & append to DOM
 Object.values(userData).forEach((userDataElement, columnIndex) => {
      // create element and textnode      
      let cell: HTMLTableDataCellElement = document.createElement("td");
      let textNode: Text = document.createTextNode(userDataElement as string);

      // append to DOM   
      cell.appendChild(textNode);
      row.appendChild(cell);
      table.appendChild(row);
      createTable!.appendChild(table);

      row.id = userData.id

      if (columnIndex === 3) {
        cell.id = "wachtwoord"
      };



How can i hide a specific table cell?

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