<div></div>
<span></span>
<i class="page-id-123"><i>
const element = document.querySelector("[class*='page-id-']");
console.log(element);

const $element = $("[class*='page-id-']");
console.log($element);

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js