Title: Uncaught TypeError: jQuery
Last modified: September 11, 2024

---

# Uncaught TypeError: jQuery

 *  Resolved [Jairo Ochoa](https://wordpress.org/support/users/jairoochoa/)
 * (@jairoochoa)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/uncaught-typeerror-jquery/)
 * Hi
   I get this message error because a script is enqueued before jQuery
 * **Uncaught TypeError: jQuery(…).on is not a function**
 * This is the script:
 *     ```wp-block-code
               <script>            jQuery(document).on('dlm-xhr-modal-data', function(e, data, headers) {                if ('undefined' !== typeof headers['x-dlm-tc-required']) {                    data['action'] = 'dlm_terms_conditions_modal';                    data['dlm_modal_response'] = 'true';                }            });        </script>
       ```
   
 * It’s located here: /download-monitor/src/TermsAndConditions/classes/class-dlm-
   tc-modal.php
   I fix it simply changing
 *     ```wp-block-code
       add_action( 'wp_footer', array( $this, 'add_footer_scripts' ) );
       ```
   
 * by
 *     ```wp-block-code
       add_action( 'wp_footer', array( $this, 'add_footer_scripts' ), 99 );
       ```
   
 * Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Razvan Aldea](https://wordpress.org/support/users/raldea89/)
 * (@raldea89)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/uncaught-typeerror-jquery/#post-18009673)
 * Thank you for the feedback, we’ll issue a fix in the next update.
   Warmly,Razvan
 *  [beatrice12](https://wordpress.org/support/users/beatrice12/)
 * (@beatrice12)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/uncaught-typeerror-jquery/#post-18040630)
 * This issue was fixed in our latest update. I will mark this thread as resolved.
 *  Thread Starter [Jairo Ochoa](https://wordpress.org/support/users/jairoochoa/)
 * (@jairoochoa)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/uncaught-typeerror-jquery/#post-18041986)
 * Great!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Uncaught TypeError: jQuery’ is closed to new replies.

 * ![](https://ps.w.org/download-monitor/assets/icon-256x256.png?rev=3198936)
 * [Download Monitor](https://wordpress.org/plugins/download-monitor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/download-monitor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/download-monitor/)
 * [Active Topics](https://wordpress.org/support/plugin/download-monitor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/download-monitor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/download-monitor/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Jairo Ochoa](https://wordpress.org/support/users/jairoochoa/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/uncaught-typeerror-jquery/#post-18041986)
 * Status: resolved