|
.nextSibling()
Fetches the next HTML sibling element in the DOM
Returns
Example 1
Next HTML sibling element of #box1 is #box2 div which will be selected while using .nextSibling() on #box1
JS
HTML
$.domLoaded(function() {
//box2 == $.get("#box2").element();
var box2 = $.get("#box1").nextSibling();
});
| |||||
