title: Jquery .hide not working as expected. No errors and blank console
body: <p>I have a jQuery function inside .click and it does not work. I have tested the jQuery and it's working but have tried multiple combinations as tests inside the .click and things aren't working correctly for some reason. The console is blank and states there are no erros. It does say, however, that it can't find any of my defined variables...</p>
  
  <p>html:</p>
  
  <pre><code>&lt;body&gt;
      &lt;section id="container_header"&gt;
          &lt;header&gt;
              &lt;nav&gt;
                  &lt;a id="home"&gt;Home&lt;/a&gt;
                  &lt;a id="about"&gt;About&lt;/a&gt;
                  &lt;a id="work"&gt;Work&lt;/a&gt;
                  &lt;a id="contact"&gt;Contact&lt;/a&gt;
              &lt;/nav&gt;
          &lt;/header&gt;
      &lt;/section&gt;
      &lt;section id="container_content"&gt;
          &lt;div class="section" id="section-home"&gt;&lt;/div&gt;
          &lt;div class="section" id="section-about"&gt;&lt;/div&gt;
          &lt;div class="section" id="section-work"&gt;&lt;/div&gt;
          &lt;div class="section" id="section-contact"&gt;&lt;/div&gt;
      &lt;/section&gt;
  </code></pre>
  
  <p>With CSS I am rendering the empty divs and they show properly. Now for the js:</p>
  
  <pre><code>        $(function(){
              $(this).click(function(){
                  var pid = $(this).attr("id"); //console says this var is not defined???
                  $(this).hide(); //even this does not work???
                  //$("div[id^=section-]").hide(); //this works just fine???
                  //$(this).closest("#container_header").hide(); //not working???
                  //$(this).closest("body").find("#section-" + pid).show(); //no likey???
                  //alert("h"); //works
              });
          });
  </code></pre>
  
  <p>Comments above describe things that work and things that doen't. It's probably something stupid but I can't see it. And yes, while testing I'm removing the comments before trying them.</p>