title: Hiding an element using jQuery
body: <p>I'm trying to hide an element using jQuery, but I think I did something wrong. Please take a look at my code:</p>
  
  <pre><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;script type = "text/javascript"&gt; 
  
  $(function(){
  
  function hide(id) { 
  $("#"+id).hide();
  }
  
  });
  
  hide("test");
  
  &lt;/script&gt;
  
  &lt;div id = "test"&gt; Hello &lt;/div&gt;
  </code></pre>