Selector for a range of ids
Posted
by Kiffin
on Stack Overflow
See other posts from Stack Overflow
or by Kiffin
Published on 2010-03-31T15:18:06Z
Indexed on
2010/03/31
15:23 UTC
Read the original article
Hit count: 117
css
I need to select all span tag elements within a div with an id list_{[0-9]}+
having the following form:
<div id="list_1234" ...>
<!-- can be nested multiple levels deep -->
...
<span class="list_span">Hello</span>
</div>
How can I do that, e.g. without using jQuery? Is that possible?
© Stack Overflow or respective owner