Created
December 21, 2017 15:30
-
-
Save chepe263/ac81524ff5e35abc6d12efe5dd805cda to your computer and use it in GitHub Desktop.
Crear tabla
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var crear_tabla = function(){ | |
var max_rows = 3; | |
var max_cols = 7; | |
var html = ''; | |
for(var row = 0; row < max_rows; row++){ | |
html += "<tr>"; | |
for(var col = 0; col < max_cols; col++){ | |
html += "<td>"; | |
html += "col: " + col + ", row: " + row; | |
html += "</td>"; | |
} | |
html += "</tr>"; | |
} | |
jQuery('#tablero tbody').html(html); | |
}//crear_tabla |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table id="tablero"> | |
<tbody> | |
</tbody> | |
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment