title: Jquery select class from variable
body: <p>I am using Jquery to find a class by variable. So,</p>
  
  <pre><code>var className = "whatever";
  </code></pre>
  
  <p><em>$("#container ul li") if contains element with className, do this</em></p>
  
  <p>How do I write the above code?</p>
  
  <p>Is it</p>
  
  <pre><code>$("#container ul li").find("."+ className).each(function(){
  console.log("I found one");
  });
  </code></pre>
  
  <p>Obviously the code doesn't work</p>