title: Find html element which id starts with
body: <p>my question is this:</p>
  
  <p>I have HTML code in multiple pages, on each of them I used a JQgrid (jquery grid) for display some data. I knew that on each of those pages, the element that holds the JQgrid is named as "LIST_xxx". Now I need to make a javascript that takes that element "LIST_XXXX" on each page and does some stuff. How could I search for an element by ID but only knowing its initial part (of the ID ,like i mentioned previously):</p>
  
  <pre><code>$('#list_[XXXX]')... --&gt; The part surrounded by [] is variable on each page, i want to discriminate that.
  </code></pre>
  
  <p>I hope i made myself clear. Thanks.</p>