Getting all links with specific inner HTML value in jQuery

后端 未结 4 1647
时光取名叫无心
时光取名叫无心 2021-02-05 04:56

I

4条回答
  •  孤街浪徒
    2021-02-05 05:53

    As an additional note, rather than scanning for exact text inside a link it might be better to be scanning for attributes, e.g.

    
    

    Now you can (accurately) scan for:

    all_seeds = $('a[data-item-type="seed"]');
    

    (I'm a big fan of the data-* attributes.)

提交回复
热议问题