Skip to content
ProgramistaZpolski edited this page Jan 10, 2021 · 1 revision

Find nodes from the HTML with a CSS selector:

h("h1"); // selects the first h1
h(".line"); // selects the first element with the line class
h("#line"); // selects the first element with the id of line
h("[data-ajax]"); // selects the first element with a data-ajax attribute
h(":disabled"); // selects the first disabled element

Clone this wiki locally