Below is the Jason data received from service call.
"response": {
"eventSessions": {
"sessions": [
{
"startTime": "07:00:00",
"sessionId": 21234,
"endTime": "08:00:00",
"eventId": 1234,
"modifiedDate": "2010-12-07",
"sessionDate": "2010-12-07",
"numberOfAttendees": 3,
"sessionName": "SessionName",
},
{
"startTime": "09:00:00",
"sessionId": 21235,
"endTime": "10:00:00",
"eventId": 1234,
"modifiedDate": "2010-12-07",
"sessionDate": "2010-12-07",
"numberOfAttendees": 3,
"sessionName": "SessionName",
},
{
"startTime": "07:00:00",
"sessionId": 21248,
"endTime": "08:00:00",
"eventId": 1234,
"modifiedDate": "2010-12-08",
"sessionDate": "2010-12-08",
"numberOfAttendees": 3,
"sessionName": "SessionName",
},
] } }
This is just a part of data. Real data has close to 30 session elements. Need to group sessionID based on Session Date and display as show below format using Jquery. Please note Start time and End time are different for each session. Pls help me out here.
<th width="200" scope="col">Fri, Dec 07</th>
<th width="200" scope="col">Sat, Dec 08</th>
</tr>
<tr>
<td><span><strong>7:00 AM - 8:00 AM</strong><br>
21234</span></a> </td>
<td><span><strong>9:00 AM - 10:00 AM</strong><br>
21235</span></a> </td>
</tr>
<tr> <td><span><strong>7:00 AM - 8:00 AM</strong><br>
21248</span></a> </td>
</tr>