Using simple_html_dom I am trying to get all td with the inner-text value ‘used’.
I have tried doing the following with no luck.
php
if($input = $row->find('td[value^=used]',10)){
echo $input;
}
html
<table>
<tr>
<td>status</td>
<td>condition</td>
<td>new</td>
<td>used</td>
<td>used</td>
<td>new</td>
<td>used</td>
<td>new</td>
<td>used</td>
</tr>
</table>
You cannot get TD value using attribute selectors, because inner text is not an attribute.
Try this: