With jQuery, you can program your web pages to respond to user interactions, call other scripts, change the page content without reloading the page, and much more.
it's worth knowing how jQuery works since it saves developers time and requires much less code to accomplish the same tasks as plain JavaScript..
WordPress CMS code files include some jQuery libraries that allow developers to leverage jQuery in their themes and plugins to make dynamic and engaging interfaces..
As mentioned, jQuery library comes loaded WordPress, ready to use — you do not need to download any additional files or software to leverage jQuery..
there are some modifications to your code files that we recommend you make order to use jQuery in your projects most efficiently.
The downside of compatibility mode is that using jQuery instead of the shorthand $ might bloat your code, since it's more characters and you'll be using this function name frequently.
Next, order to use jQuery WordPress, we need to enqueue it.
In other words, we need to load the scripts that plugins and themes need to recognize and process jQuery syntax.
You can enqueue any jQuery script that is included WordPress, or add your own jQuery scripts to WordPress..
In WordPress, scripts are loaded with the function wp enqueue script, which is placed in the functions php of WordPress theme.
Read more