jQuery has a method siblings() that will select all the siblings of each element in the object that it is called on.