How to get all element parents using jquery? i want to save these parents in a variable so i can use later as a selector.  

such as `<div><a><img id="myImg"/></a></div>`   

GetParents('myImg'); will return "div a" something like that