.getPrev(selector)
Available on: InDomReturns the InDom object for previous sibling element (or the previous 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:const span = $1('.sibling-example>.c');
console.log(span.getPrev().getHtml());
// test
console.log(span.getPrev('.a').getHtml());
// .a testNext: append »