Cheat Sheet for the modern DOM API

See the attached link for a useful overview of modern (and classic) DOM API methods, like matches, contains, append, cssText, etc.

You will still need to look up some documentation, e.g. on how to modify a ClassList, but it's still better than browsing interfaces and superclasses of Element on MDN without knowing what to look for.

When coming from jQuery, also see the card on JavaScript without jQuery. This card includes a link to You Don't Need jQuery Archive , which summarizes most of the alternatives in native Javascript implementation to jQuery methods.

Arne Hartherz almost 3 years ago
This website uses short-lived cookies to improve usability.
Accept or learn more