How to get all elements inside "div" that starts with a known text

Posted by misha-moroshko on Stack Overflow See other posts from Stack Overflow or by misha-moroshko
Published on 2010-04-11T16:00:47Z Indexed on 2010/04/11 16:03 UTC
Read the original article Hit count: 167

Filed under:
|

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 !

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html