title: getByElementId hide?
body: <pre><code>document.getElementById(id).hide("slide", { direction: "down" }, 1000);
  </code></pre>
  
  <p>This is in my javascript file.</p>
  
  <p>I'm trying to hide a div, which has the id of var 'id'.</p>
  
  <p>The error console is listing that it isn't a function.</p>
  
  <p>Edit:</p>
  
  <p>I don't think I'm getting the right element this way (using <code>$("#" + id)</code>).</p>
  
  <p>Let's say im making the div like this: <code>&lt;div id="2"&gt;</code>, and the javascript function is getting 2</p>