.getNext(selector)
Available on: InDomReturns the InDom object for next sibling element (or the next sibling that matches the selector).
Returns null if nothing is found.Parameters:
Returns null if nothing is found.Parameters:
selector {string} (optional) - CSS selector to test against siblings.
Returns: {InDom | null} - InDom object, or null when not foundThrows: Error - If the underlying element has been removed
Examples:<div class="sibling-example">
<div class="a">.a test</div>
<div>test</div>
<div class="c">.c test</div>
</div>const span = $1('.sibling-example>.a');
console.log(span.getNext().getHtml());
// test
console.log(span.getNext('.c').getHtml());
// .c testNext: getPrev »