title: How can I make the .click do two functions in jquery?
body: <p>I am super new to jQuery and JaVascript and I love it but I'm having issues,,,</p>
  
  <p>I have an element called button1 that I want to make another element called bubble1 disappear when clicked once and re-appear when clicked again.</p>
  
  <p>I tried this but it did not work</p>
  
  <pre><code>$(document).ready(function(){
      $('#button_1').click(function (){
          $('#bubble1').css('visibility','hidden');
          $('#button_1').click (function(){
              $('#bubble1'.css('visibility'.'visible');
          });
      });
  });
  </code></pre>
  
  <p>This second one worked but the object disappear and re-appears with one click.</p>
  
  <pre><code>$(document).ready(function (){
      $('#button_1').click(function (){
          $('#bubble1').fadeOut();
      });
  });
  $('#button_1').click(function (){
      $('#bubble1').fadeIn();
  });
  </code></pre>