I have a table HTML
horizontal, where I want to get the value of TD
(time) when clicking on the line. Here's an image to try to illustrate better.
Byclickingonthe07:00hourlineforexample,openamodaltoregistertheeventatthetimeyouclicked.
Ibuiltmytableasfollows:
<tableclass="tg">
<tr>
<th class="tg-031e">Horarios</th>
<th class="tg-031e">Nome do paciente</th>
<th class="tg-031e">Convênio</th>
<th class="tg-031e">Data do agendamento</th>
<th class="tg-yw4l">Usuário do Agendamento</th>
</tr>
<tr>
<td class="tg-031e">07:00</td>
<td class="tg-031e"></td>
<td class="tg-031e"></td>
<td class="tg-031e"></td>
<td class="tg-yw4l"></td>
</tr>
<tr>...
How do I do this?