title: How to get all elements inside "div" that starts with a known text
body: <p>I have a <code>div</code> element in an HTML document.</p>
  
  <p>I would like to extract all elements inside this <code>div</code> with <code>id</code> attributes starting with a known string (e.g. "q17_").</p>
  
  <p>How can I achieve this <b>using JavaScript</b> ?</p>
  
  <p>If needed, for simplicity, I can assume that all elements inside the <code>div</code> are of type <code>input</code> or <code>select</code>.</p>