首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >TypeError: jQuery(.).placeholder不是函数

TypeError: jQuery(.).placeholder不是函数
EN

Stack Overflow用户
提问于 2017-01-20 10:10:48
回答 1查看 5.5K关注 0票数 0

我使用avada主题,版本3.6.1。和运行WP4.5.5。

一些日历没有显示在网站上,错误是:语法错误,无法识别的表达式:a[href*=#]:not([href

我换了main.js [href*=#] into [href*="#"]

现在我明白了:

Uncaught :jQuery(.).placeholder不是HTMLDocument的函数。(4b8c4.js:1792) I (26ef1.js:5) at Object.fireWith as resolveWith at Function.ready (26ef1.js:5) at HTMLDocument.K (26ef1.js:5)

EN

回答 1

Stack Overflow用户

发布于 2017-01-20 10:15:41

如果要更新placeholder属性,则需要使用attr方法。

代码语言:javascript
复制
$('[href*="#"]').attr('placeholder', 'hoge');
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/41761013

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档