var pt = document.getElementById('table_pt'); for( var i=0;i<pt.rows.length;i++){ pt.rows[i].style.display = "block"; }