title: jQuery: How to apply event handler to $('#text' + 'any integer') without for loop?
body: <p>I'm looking for something like this:</p>
  
  <pre><code>$('#showcomments' + 'any integer' ).click(function(){ do stuff });
  </code></pre>
  
  <p>I do not want to use a <code>for</code> loop because the amount of unique id's <code>showcomments1</code>, <code>showcomments2</code>, etc. is dependent on a database whose contents change by user input.</p>
  
  <p>And I do not want to access the database in jQuery just to make a <code>for</code> loop that always is limited to the amount of rows in the table.</p>
  
  <p>Surely there is some way to express 'any integer'?</p>