How to get all elements inside "div" that starts with a known text
- by misha-moroshko
Hello,
I have a div element in HTML document.
I would like to extract all elements inside this div that starts with a known text (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.)
Thanks !