0
I have the following lines within a table:
<table id="table_marcas">
<tr>
<td>Nome</td>
<td class="template">Óleos</td>
<td class="template">Veículos</td>
<td class="template">Óleos</td>
</tr>
.....
</table>
These lines are generated dynamically on the server according to some conditions, and may or may not exist in the final HTML. What I’m looking for is to get the contents of class "template", and then check if there is one equal to "Oils".
Could you explain that part of dynamics? Does the table structure change or only the values? It is after page loading or after some event, such as a click on a button?
– Randrade
@Randrade, yes the structure can be changed, lines can be removed, or new lines added. It happens during page loading
– pc_oc
If it is during loading, the answer code below should suit you.
– Randrade