How do I select a sibling element using jQuery?

前端 未结 10 1615
渐次进展
渐次进展 2020-12-05 01:29

Can you help me with this jQuery selector?

$(\".auctiondiv .auctiondivleftcontainer .countdown\").each(function () {
    var newValue = parseInt($(this).text         


        
10条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-05 01:55

    Since $(this) refers to .countdown you can use $(this).next() or $(this).next('button') more specifically.

提交回复
热议问题