| Clear | Match 1 | Match 2 | Match 3 | Match 4 | Match 5 | Match 6 | Match 7 | Match 8 | Match 9 | Match 10 | Match 11 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Team 1 | 2 | 2 | 0 | 1 | 0 | 2 | 1 | 2 | 1 | 1 | 3 |
| Team 2 | 1 | 0 | 3 | 4 | 2 | 3 | 0 | 4 | 0 | 4 | 2 |
| Team 3 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 2 | 1 | 2 | 3 |
| Team 4 | 3 | 1 | 1 | 4 | 3 | 0 | 3 | 3 | 1 | 2 | 1 |
| Team 5 | 1 | 2 | 3 | 0 | 1 | 2 | 0 | 1 | 1 | 0 | 1 |
| Team 6 | 0 | 0 | 1 | 0 | 2 | 3 | 0 | 0 | 1 | 1 | 1 |
| Team 7 | 1 | 0 | 2 | 1 | 1 | 1 | 2 | 1 | 2 | 0 | 3 |
| Team 8 | 2 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 1 |
| Team 9 | 0 | 1 | 2 | 1 | 1 | 1 | 0 | 1 | 2 | 1 | 0 |
| Team 10 | 0 | 1 | 2 | 4 | 1 | 0 | 1 | 1 | 1 | 1 | 0 |
| Team 11 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 1 | 2 | 0 | 0 |
| Team 12 | 1 | 2 | 1 | 0 | 1 | 1 | 2 | 2 | 1 | 0 | 2 |
Selecting a teams score highlights the opponents score as well, clicking on either one of the highlighted scores unhighlights them both.
You can have the previously highlighted scores unhighlight when another score is selected by setting the value of clearPrevious to 1
Setting clearPrevious to zero keeps any previously selected scores highlighted until they are clicked again.
All highlighted scores can be cleared by including onclick="clearAll()" in a link or button
There are 3 colour highlight options
When creating the table all the cells in the first row and the first cell in each consecutive row must be a table header TH
Each match array consists of pairs of teams and are referenced by numbers
In the following example team 1 plays team 11, team 2 plays team 8 etc.
match1=[[1,11],[2,8],[3,5],[4,10],[6,12],[7,9]]
For the home and away colours the 1st number in the pair would be the home team (1,2,3,4,6,7) and the 2nd number in the pair would be the away team (11,8,5,10,12,9)