AJAX
Basics
Data
DOM
Effects
Events
Forms
jQuery UI
Plug Ins
Traversing
The parents()
method returns all ancestor elements of the selected element,
all the way up to the document's root element (<html>).
$("#btnDemo").click(function ()
{
$("#demo2").parents().css({ "background-color": "yellow" });
});