I have a table in HTML that receives the values coming from the database. Each line of the table, when clicking on the icon I need to pick up the values of this line and when opening the modal show this information in modal.
WhenIclickonthisediticon,Ineedtogetthevalueofthereferringline[vlorScheduled]|[DtVencto]|[Document],todisplayinthemodal.
Theproblemis,sincethevaluesoftheserowsaredynamicIcannotassignaid
to<td>
tocatchitwithJS.
<table class="table table-sm table-bordered table-responsive">
<thead>
<tr>
<th>Documento</th>
<th>Vlr Programado</th>
<th>Dt Vencto</th>
<th colspan="2" class="text-center">Ações</th>
</tr>
</thead>
<tbody><tr>
<td>FR212</td>
<td>500</td>
<td>2019-01-18</td>
<td align="center">
<a id="omdleditreceita" data-idparcela="3"><i class="fas fa-edit"></i></a>
</td>
</tr>
<tr>
<td>FR212</td>
<td>500</td>
<td>2019-02-17</td>
<td align="center">
<a id="omdleditreceita" data-idparcela="4"><i class="fas fa-edit"></a>
</td>
</tr>
</tbody><tbody>
<tr>
<td colspan="9" align="center">
<div class="pagination-wrap">
<ul class="pagination"><li><a href="/sistema/instancias/receita/add-data.php?page_no=1" style="color:red;">1</a></li></ul> </div>
</td>
</tr>
</tbody>
</table>