jQuery有一个.prop()的方法,可以让你来调整元素的属性。

以下代码显示如何禁用所有按钮:

$("button").prop("disabled", true);

来尝试只让target1按钮禁用。

相关文章:

  • 2022-12-23
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2021-12-19
  • 2022-12-23
  • 2022-02-16
相关资源
相似解决方案