Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 8th, 2012  |  syntax: None  |  size: 0.30 KB  |  hits: 4  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. onclick: Have to click twice in order for a div to hide/show
  2. <input type="button" id="logintrigger" value="Log In" onClick="hideshow();"/>
  3.        
  4. function hideshow() {
  5.     var toggle = document.getElementById('logincontainer');
  6.     toggle.style.display = toggle.style.display == "none" ? "block" : "none";
  7. }