Traversing the parent nodes

Traversing the parent nodes


Is there any way to traverse up two parent nodes, example:
$(obj).parent(2)
Currently I have to do: $(obj).parent().parent()
Is there a better way?