title: Get all elements with id like into array
body: <p>I am trying to return an array of all element with an <code>id</code> starting with some value, that are inside a <code>div</code>, and assign this to a var, but I get <code>Undefined is not a function</code> exception. This is the code:</p>
  
  <pre><code>var stopPoints = $("#stop-point-content").querySelectorAll("[id^='stop-point-input-']");
  </code></pre>
  
  <p>The HTML elements <em>do</em> exist (or at least one) at the point when this line of code is reached.</p>
  
  <p>Edit:</p>
  
  <p>The id's in my case are like <code>stop-point-input-1</code>, <code>stop-point-input-2</code>, etc. That is why I am searching by <code>id^='stop-point-input-'</code> - starting with whatever value... Please, don't focus on the <code>css</code> here.</p>