CSS selector (id contains part of text)

后端 未结 3 1553
南笙
南笙 2020-11-29 00:19

I have a question. I have elements something like this:

element with id = someGenerated Some:Same:0:name

elemen

3条回答
  •  执念已碎
    2020-11-29 00:59

    Try this:

    a[id*='Some:Same'][id$='name']
    

    This will get you all a elements with id containing

    Some:Same

    and have the id ending in

    name

提交回复
热议问题