Here is the html table
<table> <tr> <td>nonono</td> <!-- FIND THIS --> <td>foobar</td> </tr> <tr> <td>nonono2</td> <!-- FIND THIS --> <td>foobar2</td> </tr> <tr> <td>nonono3</td> <!-- FIND THIS --> <td>foobar2</td> </tr> </table>
Jquery script:
$(function() { var val = $('tr td:first-child').text(); console.log(val); });
Question and answer is powered by AnsPress.io