title: Jquery: Syntax error, unrecognized expression :nth-child()
body: <p>I've used someone else's answer to get this.</p>
  
  <p>Jquery:</p>
  
  <pre><code>$("input:checkbox:not(:checked)").each(function() {
      var columnName = $(this).attr('name');
      $('td:nth-child(' + columnName + '),th:nth-child(' + columnName + ')').hide();
  });
  
  $("input:checkbox").click(function() {
      var columnName = $(this).attr('name');
      $('td:nth-child(' + columnName + '),th:nth-child(' + columnName + ')').toggle();
  });
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;input type="checkbox" name="1" checked="checked"/&gt;
  </code></pre>
  
  <p>It works when I put values in the :nth-child(1) but not when I include the variable. Am I doing it wrong or am I using the wrong Jquery library.</p>
  
  <p>Any help would be appreciated!</p>