Title: jquery error
Last modified: July 15, 2020

---

# jquery error

 *  Resolved [stavroch](https://wordpress.org/support/users/stavroch/)
 * (@stavroch)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/jquery-error-79/)
 * When I add the <script src=”[https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js”></script&gt](https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js”></script&gt);
   the accordion is not working.
 * Why?
    Can be fixed?

Viewing 1 replies (of 1 total)

 *  Plugin Author [PickPlugins](https://wordpress.org/support/users/pickplugins/)
 * (@pickplugins)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/jquery-error-79/#post-13127099)
 * Thanks for your post,
 * you are doing it wrong, you can’t use external jquery.js, please use WordPress
   provided jQuery by using
 *     ```
       wp_enqueue_script('jquery');
       ```
   
 * you can write your jquery code like this
 *     ```
       jQuery(document).ready(function($) {
   
       // replace jQuery by $
        $(document).on('click', '.element-class', function(){
   
       // write your code here.
   
        })
   
       })
       ```
   
    -  This reply was modified 6 years, 1 month ago by [PickPlugins](https://wordpress.org/support/users/pickplugins/).

Viewing 1 replies (of 1 total)

The topic ‘jquery error’ is closed to new replies.

 * ![](https://ps.w.org/accordions/assets/icon-256x256.png?rev=2959657)
 * [Accordions](https://wordpress.org/plugins/accordions/)
 * [Support Threads](https://wordpress.org/support/plugin/accordions/)
 * [Active Topics](https://wordpress.org/support/plugin/accordions/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accordions/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accordions/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [PickPlugins](https://wordpress.org/support/users/pickplugins/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/jquery-error-79/#post-13127099)
 * Status: resolved