prevAll « jQuery « JavaScript DHTML





1.Prevall tags
2.Locate all the divs before the last and give them a class.
3.prevAll(expr): filter the matched set.