title: jQuery: Pass variable to :eq() does not work
body: <p>I have been trying to find out why the following lines of code do not work:</p>
  
  <pre><code>$('#add-cloud &gt; select').change(function() {
      var selected = parseInt($('#add-cloud select option:selected').val()); 
      $("#cloud-calculator table tr:eq(selected)").css("color", "red");
  });
  </code></pre>
  
  <p>If I change <code>:eq(selected)</code> to <code>:eq(4)</code> for example - works fine. How do you pass variable as an argument to <code>:eq()</code> ?</p>