1
I have a table HTML
horizontal, where I want to get the value of TD
(time) when clicking on the line. Follow an image to try to illustrate better.
By clicking on the line of 07:00 hours for example, open a modal to register the event in the clicked time.
I built my table as follows:
<table class="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 that?