//HTML
<table id="table1">
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
</table>
cells
<script>
alert(document.getElementById('table1').rows[0].cells.length)
</script>
//Jquery
<script type="text/javascript">
$(document).ready(function () {
alert($(Table).find('tr')[0].cells.length);
});
</script>
No comments:
Post a Comment