jquery语言中获取input标签后如何给input标签添加disabled的属性

1.使用JQuery函数prop():$("input").prop("disabled", true);

2.使用attr()函数:$("input").attr("disabled", "disabled");

最新文章

  1. 转 jQuery 中bind(),live(),delegate(),on() 区别
  2. iOS中的单例
  3. 由于C++编译器的分析机制所导致的声明问题
  4. sql查询一天内的where写法,sql写法
  5. 查看在线EBS用户的相关信息
  6. 【HDU2087】KMP
  7. linux应用程序问题
  8. 电子科大POJ "3*3矩阵的乘法"
  9. 汉字Collection
  10. The ResourceConfig instance does not contain any root resource classes
  11. tensorflow/threading 用到的一些函数
  12. TDD、BDD、ATDD、DDD 软件开发模式
  13. CucumberPeople 1.3.2 发布
  14. [dpdk] SDK编译配置
  15. VSCode 预览 .md 文件
  16. 解决 Attempting to destroy the window while drawing!
  17. js dictionary字典 遍历
  18. virtualbox+vagrant学习-2(command cli)-21-vagrant up命令
  19. binutils工具集之---nm
  20. vue-router的hash模式与history模式的对比

热门文章

  1. SSL certificate problem: unable to get local issuer certificate 错误解决
  2. Linux 第十节( APACHE )
  3. Docker CLI docker buildx 常用命令
  4. class_schedule
  5. python_test_5001_Moudle_pandas
  6. start-stop服务器启动
  7. gitea安装部署
  8. 提交docker镜像到远程仓库
  9. MinGW、Linux GNU、MSVC编译和链接动态库的分析
  10. MYSQL表操作(中篇)--数据类型