title: Java script function to hide a <span>?
body: <p>Hi i have the following code:</p>
  
  <pre><code>&lt;a onclick="show_login()"&gt;Login
  &lt;span id="login" style="visibility: hidden"&gt;
  &lt;form method="post" action="login.php"&gt; 
  &lt;label for="username"&gt;Username:&lt;/label&gt;
  &lt;input type="text" name="username" /&gt;&lt;/a&gt;
  &lt;label for="password"&gt;Password:&lt;/label&gt;
  &lt;input type="password" name="password" /&gt;
  
  &lt;input type="submit" name="login" value="Login" /&gt;
  &lt;/form&gt;
  &lt;/span&gt;
  </code></pre>
  
  <p>I want to know how to hide/show that span using the function name "show_login". How would i go about doing this?</p>