JQuery

  • One of the most common / famous old libraries
  • Simplifies common DOM operations
  • Supports very old browsers
  • Popularized using CSS Selectors in JavaScript
  • Helped browsers unify on standards
$("#my-list li")
    .css("color", "red")
    .text((i, old) => \`Item \${i + 1}.\${i + 1}\`)
    .append(
        $("<ul>").append(
            $("<li>", { class: "inner" })
                .text("inner")
                .hover(e => $(e.currentTarget).css("color", "green"))
        )
    )

9 / 24