The jQuery sibling method gets a set of elements containing all of the unique siblings of each of the matched set of elements.

Here is a simple example shows the basic usage of sibling[(selector)] method:

<html>
<head>
<script type="text/javascript" src="jquery.js"></script
>
<script type
="text/javascript">
$(document).ready(function () {
$("div").siblings().css("background", "green");
});
</script
>
</head
>
<body
>
<body>
<div>Hello Friends</div
>
<div>Hello Friends</div
>
<div>Hello Friends</div
>
<div class="selected">Hello Friends</div
>
<div>Hello Friends</div
>
</body
>

</
html>

Run this code in ASP.NET website and see the result.