.isSibling( target )
Checks whether the provided target element is a sibling to the source element
Parameters
Returns
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; }); | |||||||||||||||