Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Uncaught TypeError: jQuery(…).on is not a function

$
0
0

Replies: 0

Onload this line breaks
/* Keyboard navigation.*/
if (1) {
jQuery(document).on(‘keydown’, function (e) { // <=== this line here breaks
if (e.keyCode === 39 || e.keyCode === 38) { /* Right arrow.*/
wds_change_image_0(parseInt(jQuery(‘#wds_current_image_key_0’).val()), (parseInt(jQuery(‘#wds_current_image_key_0’).val()) + wds_iterator_0()) %

As the slider is trying to auto-rotate I get this error
if (wds_data_0[key][“is_video”] == ‘image’) {
jQuery(‘‘).attr(“src”, wds_data_0[key][“image_url”])
.on(‘load’, function() { // <==== this line here breaks
jQuery(this).remove();
wds_change_image_when_loaded_0(current_key, key, wds_data_0, from_effect, btn);
})

Thanks!


Viewing all articles
Browse latest Browse all 59525

Trending Articles