title: Can I use :lt selector with dynamic variable?
body: <p>In my MVC project I want to refresh my page with new entries using AJAX.Everything is working great but I want to add some effect when displaying the new entries. First I use prepend like this:</p>
  
  <pre><code>$(".mCSB_container").prepend(data.htmlContent);
  </code></pre>
  
  <p>Then is I do this:</p>
  
  <pre><code>$(".entry:lt(4)").hide().fadeIn(3000);
  </code></pre>
  
  <p>It is working correctly.But, I would like to do it with a dynamic variable.I'm returning the new entry count from my Controller Action and set it like this:</p>
  
  <pre><code> var count = data.count;
  </code></pre>
  
  <p>And when I want to use it like:</p>
  
  <pre><code> $(".entry:lt(count)").hide().fadeIn(3000);
  </code></pre>
  
  <p>Visual studio show me the error message that says: <code>Expected &lt;integer&gt;</code>.I tried this when I defining the count:</p>
  
  <pre><code> var count = new Number(data.count);
  </code></pre>
  
  <p>But that doesn't make any difference.Basically I want to select first <code>N</code> items with a given class, then hide and display them with fadeIn. How can I do it if the element count is dynamic ? Is it possible with <code>:lt</code> selector or is there another way I can use ?</p>