title: Jquery: Hide all children, then show a specific element
body: <p>I want to hide all child elements in a div.
  And then show a specific one passed on to the function.</p>
  
  <pre><code>function subDisplay(name) {
     $("#navSub").each(function() {
        $(this).hide();
     });
     $(name).show();
  }
  </code></pre>
  
  <p>then i call the function from an onmouse event like: <code>subDisplay(#DivIwantToShow);</code>
  But nothing displays...</p>
  
  <p>What am i doing wrong?</p>