I have a table like this:
<table id="orders">
<tr>
<td>05/06/2005</td>
<td>3216549</td>
<td>description</td>
<td>2.000,00</td>
<td>100</td>
<td>20,00</td>
<td><div id="state" class="state-c"> </div></td>
<td><a href="modify.php?id=222"><span class="bt-edit">EDIT</span></a></td>
</tr>
<table>
the part <div id="state" class="state-c"> </div>
tells "Approved", "Rejected", etc, and is generated by CSS:
.state-c:before {
content: "Confirmed";
}
now I need to get the text value of these table cells, while for all the cells I successfully use .text()
method, it doesen't get the CSS generated text "Confirmed". I tried to use getGeneratedStyle
, .value
, and have been searching for hours for information, but no luck.
My question is: how can I get the generated text inside the <div id="state" class="state-c"> </div>
which actually is empty if you look at the code?
getGeneratedStyle
? Did you meangetComputedStyle
? – Gosselin