$(...)[0].attr is not a function问题

Posted wugai

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了$(...)[0].attr is not a function问题相关的知识,希望对你有一定的参考价值。

let area = $(".textarea").not(this);
area[i].attr("disabled","true")     //这样获取的是DOM对象无法使用jq的attr
area.eq(i).attr("disabled","true")  //正确用法

以上是关于$(...)[0].attr is not a function问题的主要内容,如果未能解决你的问题,请参考以下文章

运行下一个 js 时出错 - TypeError: (0 , react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV) is not a f

AAPT: error: resource android:attr/dialogCornerRadius not found.

matlab中function和end问题,错误提示This statement is not inside any function. (6行代码)

Hbase 错误 is not online on master

Rails 6.1.3,webpacler,select2,出现错误:readyException.js:6 Uncaught TypeError: $(...).select2 is not a f

SpringBoot 集成sharding-jdbc 提示:Failed to configure a DataSource: ‘url‘ attribute is not specified ***