'); tr.append("
" + (val.gameNumber != null ? val.gameNumber : "") + " | "); tr.append("" + val.sDateString + " | "); tr.append("" + (val.RARID != null ? "" + val.arenaDisplay + "" : val.arenaDisplay) + (val.notes != "" ? " " + val.notes : "") + " | "); tr.append("" + val.HomeTeamName + " | "); tr.append("" + val.AwayTeamName + " | "); tr.append("" + (val.completed ? val.HomeScore + ' - ' + val.AwayScore : '') + " | "); if (val.completed) { tr.append(" | "); } else { tr.append(" | "); } $('#tblSchedule tbody').append(tr); }); }); $('#tblSchedule').show(); } else { $('#tblSchedule').hide(); } };