Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

289
Views
jQuery create table produce solo un cubo (caja) en lugar de una tabla completa

Estoy tratando de crear una tabla simple con jQuery.
Actualmente tengo en el navegador un solo cubo negro,
mientras que el objetivo es tener una tabla con cubos de 5 filas y 5 columnas de color negro.

HTML:

 <table class="t"> </table>

CSS:

 .box { width:50px; height:50px; background-color:black }

JS

 let $table = $('.t') let $td = $('<td>').addClass('box') for (let i = 0; i < 5; i++) { let $tr = $('<tr>') for (let k = 0; k < 5; k++) { $tr.append($td) $table.append($tr) } $tr.appendTo($table); }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!