I have a HTML structure like below:
<tbody>
<tr>
<td></td>
<td></td>
<td><a booking="1" class="event_start"></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td><a booking="1" class="booking_end"></td>
<td></td>
<td></td>
</tr>
</tbody>
I need jQuery for booking_end
click event which tells which row it is in, and which td booking_start
is in, booking_start
and booking_end
are linked by an attribute booking
.
So on click in above case I need output 2,3
. where 2
is the tr
number in which booking_end
exists and 3
is the td number in which its booking_start
exists.