I have a `div` element in an HTML document.

I would like to extract all elements inside this `div` with `id` attributes starting with a known string (e.g. "q17\_").

How can I achieve this **using JavaScript** ?

If needed, for simplicity, I can assume that all elements inside the `div` are of type `input` or `select`.