prev « jQuery « JavaScript DHTML






1.Get previous one
2.Get previous tag
3.Find the very previous sibling of each paragraph that has a class "selected".