take parent element instead of selector