Save parent element with original class attribute