title: variable with lt jQuery
body: <p>Here is my JS looks like </p>
  
  <pre><code>var h = 9;
  $('#List li:lt('+x')').show();
  if (x &lt; listnumber) {
    $('#List li:lt(5)').hide();
  }
  </code></pre>
  
  <p>I think I can just cache <code>$('#List li')</code> as a var,</p>
  
  <pre><code>var $list = $('#List li')
  </code></pre>
  
  <p>But how can I combine it? I tried following format, but doesn't work for me</p>
  
  <pre><code>$('#List li')+(':lt(5)')
  or $('#List li').is(':lt('+x+')')?
  </code></pre>