1
I would like to know how to get the first and last Rent of a class set (.date) that is contained in a div within an element .
Following is an example of a code tree:
<table>
<tr>
<td>Nome</td>
<td>Sobrenome</td>
<td>Data Nascimento</td>
</tr>
<tr>
<td class="range">Thiago</td>
<td class="range">Cunha</td>
<td class="range">
<div class="date">
22/12/1988
</div>
</td>
</tr>
<tr>
<td class="range">Caroline</td>
<td class="range">Cunha</td>
<td class="range">
<div class="date">
22/12/1988
</div>
</td>
</tr>
<tr>
<td class="range">Thalita</td>
<td class="range">Cunha</td>
<td class="range">
<div class="date">
22/12/1988
</div>
</td>
</tr>
<tr>
<td class="range">Thiago</td>
<td class="range">Cunha</td>
<td class="range">22/12/1988</td>
</tr>
<tr>
<td class="range">Caroline</td>
<td class="range">Cunha</td>
<td class="range">
<div class="date">
22/12/1988
</div>
</td>
</tr>
<tr>
<td class="range">Thalita</td>
<td class="range">Cunha</td>
<td class="range">
<div class="date">
22/12/1988
</div>
</td>
</tr>
</table>
Note that in the code, only a few Divs receive the class . date.
Grateful for the collaboration.
Related https://answall.com/questions/111535/pega-primeiro-elemento-da-linha-e-ultimo
– LeAndrade
I got to take a look, but it’s still not that!
– Thiago Cunha
Wouldn’t it be an option to create a class and put it in the first and last . date? Type class="date first"
– hugocsl