I am looking for the right way to connect jquery to wordpress. Since this type of connection conflicts with the version of jquery that is included in WordPress:
Themes must use the scripts shipped with WordPress instead of including their own copy of the script or using one from a CDN. This includes jQuery, jQuery UI, Backbone, Underscore, etc. For more information, refer to the list of scripts included with WordPress.
WordPress connects version 3.5.1 which suits me but doesn’t work. (Requires 3.3.1). Plugin that updates jquery to the latest version makes the functionality work.
WP uses jQuery 3.5.1. You should make your code available for it by removing errors. You can use “Developer Tools” of your browser to see and remove all errors.