AJAX
Basics
Data
DOM
Effects
Events
Forms
jQuery UI
Plug Ins
Traversing
The prev()
method returns the previous sibling element of the selected element.
$("#btnDemo").click(function ()
{
$("li.third-item").prev().css({ "font-weight": "bold", "color": "red" });
});