Add JQuery As Code Snippet

Create js file and add it to your child theme script folder. Then just add code to functions.php, example if page is checout wp_enqueue that file.

Example:
https://sridharkatakam.com/how-to-load-woocommerce-css-and-js-only-on-shop-specific-pages-in-wordpress/