Multiple selector how to replace a number in a selector definition

Hello friends,
I have problem how to define selector. I have code html:
`
div id="accordion__body-0"
....
div id="accordion__body-1"
....
div id="accordion__body-2"

`
I don't know how to create multiple selector. The single will look like this:
#accordion__body-0

But what to enter instead of 0 to substitute consecutive numbers. I tried (n), [0-9], [0:30] unfortunately neither of these options work. Can someone please help me ?? Thank you in advance for your help....

The "begins with" selector ^ works great for this:

div[id^='accordion__body']

Ref: https://www.w3schools.com/cssref/css_selectors.asp

2020-08-29_102346

1 Like

Thank you my friend for your help. I have one last question how to get the value from the tags ??
I want to retrieve latitude and longitude values.
From this site:
Site

<div class="onimap_edge_distance" lng="19.851606" lat="52.138961" distance="17272.851454768308" style="display: none;">17.27 km</div>
...
<div class="onimap_edge_distance" lng="20.733779" lat="52.454619" distance="37858.320654021045" style="display: none;">37.86 km</div>

Thanks again for your help