Guy van
I have a table like
<table id="table4"> <tr> <td>Id:</td> <td>Nome:</td> </tr> <tr> <td>1515</td> <td>Thiago</td> </tr> <tr> <td>2015</td> <td>Guttierre</td> </tr> </table>
and when my script does ...
$("#table4 tr td:nth-child(1)").each(function ai() { var d = $(this).text(); if ((d != 0) && (d != "") && (d != 'undefined') && (d != "Id:")) { alert(d); }; });
It returns: 1515, then 2015 and then returns an error:
Microsoft JScript runtime error: "Undefined" is null or not an object.
Why does it return "Undefined" ???
Black guys!
source share