Hi
I'm making a timetable site for a music festival. The purpose of this site is for people to choose acts they want to see and compile their own personal timetable for the event. At the moment the site has 2 tables:
- The full list of acts on at the festival
- The user's personal timetable
Here is my problem. Everytime an act is added from the full list to the user's personal timetable, i want a function which will iterate through every table row of the user's timetable and highlight a clash. This clash would then have a different format (for arguments sake, lets say it will turn the background of the row red, to indicate a clash).
How would i do this?
Table code:
<table id="fri_myTimes">
<thead>
<tr><th>Act</th>
<th>Start Time</th>
<th>End Time</th>
<th>Duration</th>
</tr></thead>
<tbody>
<tr id="band-Young-Guns class="Main">
<td>Young Guns</td>
<td>12:00:00</td>
<td>12:30:00</td>
<td>30</td>
<td><div id="btn-Young-Guns" class="del"> </div></td>
</tr>
<tr id="band-Frankie-And-The-Heartstrings" class="NME-/-Radio-1">
<td>Frankie And The Heartstrings</td>
<td>12:00:00</td>
<td>12:30:00</td>
<td>30</td>
<td>
<div id="btn-Frankie-And-The-Heartstrings" class="del"> </div></td></tr>
</tbody>