未捕获的TypeError:$(...)。on不是函数 [英] Uncaught TypeError: $(...).on is not a function

查看:152
本文介绍了未捕获的TypeError:$(...)。on不是函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友,



在我的网站上有搜索按钮,如果我点击搜索图标没有结果即将到来,但在Chrome中我可以通过检查元素找到错误就像未捕获的TypeError:$(...)。on不是函数



在1中显示错误st line

 $(' 。 searchInputContainer a.dnnSearchBoxClearText')。on('  click',function(){
var $ this = $(this);
var $ wrap = $ this .parent();
$(' 。searchInputContainer input')。val(' ')。focus();
$ this.removeClass(' dnnShow');
$(' 。searchSkinObjectPreview',$ wrap).remove();
return false;
});





请帮我找到解决方案,这对我更有帮助。



谢谢&最好的问候

g.renga

解决方案

(...)。on不是函数



在第一行显示错误

 


< blockquote>(' 。searchInputContainer a.dnnSearchBoxClearText')。on(' 点击',function(){
var

this =


Hi friends,

In my website have with search button, if i click search icon no result is coming, but in chrome i can find via inspect element the error is like "Uncaught TypeError: $(...).on is not a function"

showing error in 1 st line

$('.searchInputContainer a.dnnSearchBoxClearText').on('click', function () {
                   var $this = $(this);
                   var $wrap = $this.parent();
                   $('.searchInputContainer input').val('').focus();
                   $this.removeClass('dnnShow');
                   $('.searchSkinObjectPreview', $wrap).remove();
                   return false;
               });



please help me to find solution for this, its more helpful for me.

Thanks & Best Regards
g.renga

解决方案

(...).on is not a function"

showing error in 1 st line


('.searchInputContainer a.dnnSearchBoxClearText').on('click', function () { var


this =


这篇关于未捕获的TypeError:$(...)。on不是函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆