'); tr.append("
" + (val.gameNumber != null ? val.gameNumber : "") + " | "); tr.append("" + val.sDateString + " | "); tr.append("" + val.ArenaName + " | "); if (val.homeTID != null) { tr.append("" + "" + val.HomeTeamName + " | "); } else { tr.append("" + val.HomeTeamName + " | "); } if (val.awayTID != null) { tr.append("" + "" + val.AwayTeamName + " | "); } else { tr.append("" + val.AwayTeamName + " | "); } tr.append("" + (val.completed ? val.homeScore + ' - ' + val.awayScore : '') + " | "); if (val.completed && 12 != 7) { tr.append(" | "); } else { tr.append(" | "); } $('#tblSchedule tbody').append(tr); }); }); $('#tblSchedule').show(); } else { $('#tblSchedule').hide(); } };