I want to show and hide (toggle) the
You need to modify your function as: currently it is checking based on the You need to modify your anchor tag as:
onClick event of the .
this is my tag
&
function toggleTable()
{
if (document.getElementById("loginTable").style.display == "table" ) {
document.getElementById("loginTable").style.display="none";
} else {
document.getElementById("loginTable").style.display="table";
}
boolean parameter, you don't have to pass the parameter with your function. Login