News Headlines

Wednesday, December 3, 2008

how to display/hide the HTML control using javascript

function Showdata(indexx)
{
var tbl1=document.getElementById(indexx);
if(tbl1.style.display == 'block')
tbl1.style.display = 'none';
else
tbl1.style.display = 'block';
}



onclick="Showdata('tblViews')"

No comments: