jQuery find ID with variable component
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5002966/jquery-or-css-selector-select-all-ids-that-start-with">jquery or css selector? select all id’s that start with</a>  </p>
</blockquote>



<p>This code changes <code>#idview</code>'s <code>src</code> attribute on mouse-over of ids 1-3.</p>

<pre><code>$("#id_1, #id_2, #id_3, #etc").mouseover(function(){
    $("#idview").attr("src","id_" + this.id.substr(3,4) + ".jpg");
});
</code></pre>

<p>How can I select an ID by "#id_" and then a variable integer? Say for example if there were 1000 images, where it would be impractical to write this out long hand?</p>

<p>It may be something like <code>$("#id_"+*)</code>?</p>
