Universeorange.com/Docs/

Priya library Function reference Element functions previous

    ready(() => {
        const element = select('div');
        const next = element.next();
        const previous = next.previous();
        console.log(previous);
});

This function get the previous element. in the example, previous === element.

Last modified: 2021-06-07

© 2021 universeorange.com