A modern jQuery drop-in replacement based on a floorjs script. The project Floorquery is based on is not deprecated and can be found here inside the FloorJS project which is still maintained today.
NPM
Run this command in a terminal/console:
npm i floorquery@latestCDN (supported for our fellow CDN-loving web devs)
Include this script tag above any other JavaScripts using Floorquery:
<script src="https://cdn.jsdelivr.net/npm/floorquery@latest/dist/floorquery.umd.js"></script>Floorquery is focused on DOM manipulation. You select a list of elements like this:
$q("#racecar") // Element(s) with a "racecar" IDIf there are multiple elements returned, all functions with the capability will be affected. For example:
$q(".superlinks").class(".supersuperlinks") // Toggles the .supersuperlinks class on every element with the .superlinks class
$("a").attr("href") // Only the href= attribute of the first hyperlink foundIf you're fine writing in vanilla JavaScript and manual type declaration files, you can help us! Read and follow the license and you're good.