jQuery error
-
Hi,
Love the plugin but I’m having a problem when using quizzes in ajax mode.
I’m using the code below to load jQuery and other js scripts in the footer, rather than the header:
wp_deregister_script('jquery'); wp_register_script('jquery', '/wp-includes/js/jquery/jquery.js', false, false, true); wp_enqueue_script('jquery');
With that code running, I get this console error when clicking Show Results:
Uncaught TypeError: Cannot read property 'length' of undefined
Disabling the code above makes Watu work fine.
Am I right in thinking this is happening because the Watu JS in the head isn’t using $( document ).ready()?
If that’s correct, how can I add this? Thank you.
Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
- The topic ‘jQuery error’ is closed to new replies.