Get href attribute on jQuery

后端 未结 6 1434
眼角桃花
眼角桃花 2021-02-12 13:24

I have some table rows


    
        
      
6条回答
  •  一个人的身影
    2021-02-12 13:53

    In loop you should refer to the current procceded element, so write:

    var a_href = $(this).find('div.cpt h2 a').attr('href');
    

提交回复
热议问题