Using jQuery with domReady in a CMS page or static block (Magento 2)

Want to use jQuery in a static block or CMS page? No problem! Open the page or block in Magento 2 admin and insert the following code:

If you do not want to wait for the domReady event, simply…

Using jQuery in a template (phtml) (Magento 2)

The following code shows how to load and use jQuery in a Magento 2 .phtml template.