jQuery find all li with an id starting with total

前端 未结 1 960
清酒与你
清酒与你 2021-02-15 11:36

I have the below but want to only loop through lines in #lines which have an id starting with total

$(\"#lines li\").each(function() {
}

any id

相关标签:
1条回答
  • 2021-02-15 12:07
    $("#lines li[id^=total]").each(function() { ... });
    
    0 讨论(0)
提交回复
热议问题