function getByClass (className, parent)