EDITABLE CODE:
LiveDemo:jQuery - Select Ancestors using parents()
Note:The method parents() selects all parents.