tags:

views:

620

answers:

1

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 ideas?

Lee

+6  A: 
$("#lines li[id^=total]").each(function() { ... });
Philippe Leybaert