<table id="myTable" cellpadding="0" cellspacing="0"> <thead> <tr> <th>First Name</th> <th>Last Name</th> <th>Birth Date</th> </tr> </thead> <tbody> <tr> <td>John</td> <td>Smith</td> <td>03-11-1980</td> </tr> </tbody> </table> Solution: $("#myTable tbody tr").length - Its wrong. $("#myTable > tbody > tr").length; - Its right to get solution.
No comments:
Post a Comment