title: How to add string to jQuery selector?
body: <p>I'm trying to select an id that changes on different posts of same page. So the they have been given an id="show_posts_{PostID}"  - on the final output the {PostID} is replaced with a number. In the function I need to call <code>$('show_posts_XXXXXX')</code> - XXXXXX being the generated ID. I have stored this ID in a variable called postId.</p>
  
  <p>But I can't seem to do this <code>$("'" + "show_posts_" + postId + "'")</code></p>
  
  <p>Can anyone tell me how I can add a string to the end of a selector?</p>