Wordpress uses jQuery in noConflict mode by default. You need to reference it using jQuery as the variable name, not $.
Replace “jQuery(document);” in place of “$(document);”
Here we will see How to add a simple jQuery script to WordPress. You can insert java-script file in your theme, child theme or plugin with using these WordPress functions.