Universeorange.com/Docs/

Priya library Function reference Element functions closest

    ready(() => {
        let button = select('button');
        button.on('click', (event) => {
            button = event.target.closest('button');
            console.log(button);
            form = button.closest('form');
            console.log(form);
        });
    });

This function search the parent nodes for the selector.

Last modified: 2021-06-07

© 2021 universeorange.com