Is it possible to directly replace an element with another one? Is it possible to get the position of the element in parent?