.isSibling( target )
Checks whether the provided target element is a sibling to the source element
Parameters
NameTypeDefaultPossible ValuesDescription
targetHTMLElementHTMLElementHTMLElement against which should be checked for sibling relationship with source element
Returns
TypeDescription
booleantrue if the elements are sibling, else false
Example 1
Checks whether #box1 and #box2 are siblings
JS HTML
		$.domLoaded(function() {

				var target = $.get("#box1").element();
				$.get("#box2").isSibling( target ); // should return true;
				
				var body = $.get("body").element();
				$.get("#box2").isSibling( body ); // should return false;
				
		});						
						
<body>
	
	<div id="box1"></div>
			
	<div id="box2"></div>

</body>