jquery 查找id以XX开头的所有元素的个数

  • A+
所属分类:jquery
var num = $("#block_"+ name).find("[id^='" + name + "_']:visible").length;

 

ZPY

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: