title: Concatenate in jQuery Selector
body: <p>Simple problem. I have a js variable I want to be concatenated too within a jQuery selector. However it is not working. No errors are popping up either. What is wrong? How do I correctly concatenate a variable to some text in a jQuery selector.</p>
  
  <pre><code>&lt;div id="part2"&gt;&lt;/div&gt;
  
  &lt;script type="text/javascript" &gt;
  
  $('#button').click(function () 
  {
  var text = $('#text').val();    
  var number = 2;
  $.post('ajaxskeleton.php', {
  red: text       
  }, 
      function(){
      $('#part' + number).html(text);
      }); 
  });
  
  
  &lt;/script&gt; 
  </code></pre>