Last active
August 29, 2015 14:07
-
-
Save fomkin/90dfdfee82a62ba80d86 to your computer and use it in GitHub Desktop.
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
function processData(data) { | |
for(var i = 0; i < data.length; i++) { | |
var row = $('<tr></tr>') | |
.append($('<td>' + data[i].id + '</td>')) | |
.append($('<td>' + data[i].firstName + '</td>')) | |
.append($('<td>' + data[i].secondName + '</td>')); | |
if ($('showCountryCheckbox').checked) { | |
row.append($('<td>' + data[i].country + '</td>')); | |
} | |
$('table').append(row); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment