chavezdelhi
New Member
What am I missing to make it toggle? It seems logical to switch on the 2nd account but it only switch once. \[code\]function ShowHide() { var right_e = document.getElementById('id1'); var left_e = document.getElementById('id2'); if (top.visible_id == 'right') { right_e.style.display = 'none'; left_e.style.display = 'block'; top.visible_id = 'left'; } else { right_e.style.display = 'block'; left_e.style.display = 'none'; top.visible_id = 'right'; } }<a onclick ="javascript:ShowHide()" href="javascript:;" >click here</a>\[/code\]