title: Replace form with another form on button click
body: <p>I have 2 forms. I want when button is clicked to show another form on first form position. So just to replace that form.</p>
  
  <p><strong>Form 1</strong></p>
  
  <pre><code>&lt;div id="right"&gt; 
      &lt;form id="contact" class="visible" action="" method="post"&gt;
          &lt;fieldset&gt;
              &lt;input name="fname" placeholder="Ime" type="text" tabindex="1" required&gt;
          &lt;/fieldset&gt;
          &lt;fieldset&gt;
              &lt;input name="lname" placeholder="Prezime" type="text" tabindex="2" required&gt;
          &lt;/fieldset&gt;
          &lt;fieldset&gt;
              &lt;input name="tel" placeholder="Telefon" type="text" tabindex="2" required&gt;
          &lt;/fieldset&gt;
          &lt;fieldset&gt;
              &lt;input name="email" placeholder="Email" type="email" tabindex="2" required&gt;
          &lt;/fieldset&gt;
          &lt;fieldset&gt;
              &lt;button name="submit" type="submit" id="contact-submit" data-submit="...Sending"&gt;Pošalji&lt;/button&gt;   
          &lt;/fieldset&gt;         
      &lt;/form&gt; 
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>Form 2</strong></p>
  
  <pre><code>&lt;div id="form2"&gt;
      &lt;form id="contact2" action="" method="post"&gt;
          &lt;fieldset&gt;
              &lt;input name="fname" placeholder="Ime" type="text" tabindex="1" required&gt;
          &lt;/fieldset&gt;
          &lt;fieldset&gt;
              &lt;input name="lname" placeholder="Prezime" type="text" tabindex="2" required&gt;
          &lt;/fieldset&gt;
          &lt;fieldset&gt;
              &lt;input name="tel" placeholder="Telefon" type="text" tabindex="2" required&gt;
          &lt;/fieldset&gt;
          &lt;fieldset&gt;
              &lt;input name="email" placeholder="Email" type="email" tabindex="2" required&gt;
          &lt;/fieldset&gt;
          &lt;fieldset&gt;
              &lt;button name="submit" type="submit" id="contact-submit" data-submit="...Sending"&gt;Pošalji&lt;/button&gt;   
          &lt;/fieldset&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>jQuery</strong></p>
  
  <pre><code> $("#contact-submit").on("click", function() {
        $("#contact").removeClass("visible");
        $("#form2").addClass("visible");
      });
  </code></pre>
  
  <p>So for some reason this is not working. Please help me to solve this. I tried to set <code>opacity:0;</code> of first form but it doesn't work. And please let me know which libary is should use.</p>
  
  <p>Here is my example: <a href="http://codepen.io/anon/pen/PzKaPa" rel="nofollow">http://codepen.io/anon/pen/PzKaPa</a></p>