I have searched this one a bit now. Is there a way to get only the `offsetParent()` of an element where that parent is positioned **relative** only? I don't want other parents with all positions. Just the parent that has relative position. 

I was thinking of something like 

```
$('myelement').offsetParent().css('position','relative');

```

I want it to return only the first positioned parent that has relative position but this won't solve it, I know.