var rowCount = document.getElementById('tableID').rows.length; console.log(rowCount);
var rowCount = document.getElementById('myTableID').rows.length;