I want to show and hide (toggle) the
You are trying to alter the behaviour of
onClick
event of the .
this is my
tag
&
onclick
inside the same function call. Try it like this:Anchor tag
Login
JavaScript
function toggleTable() {
var lTable = document.getElementById("loginTable");
lTable.style.display = (lTable.style.display == "table") ? "none" : "table";
}