Universeorange.com/Docs/

Priya library Function reference Global functions select

    ready(() => {
        let node = select(String selector);
    });

String selector The selector to select the element or elements.
The selector must be a valid CSS selector string.
Multiple selectors may be specified by separating them using commas.

Example

    ready(() => {
        let title = select('h1');
        title.addClass('title');
    });

Console F12

Inspecting the element shows the <h1> has a class title <h1 class="title">.

Last modified: 2021-06-07

© 2021 universeorange.com