js和jquery使按钮失效的方法
设置disabled属性为true即为不可用状态。
JS:
document.getElementByIdx("btn").disabled=true;

jquery
$("#btn").attr("disabled", true);

html:
<input type="button" value="提交" >

相关文章:

  • 2021-08-31
  • 2021-06-19
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2021-08-06
  • 2022-01-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-11
  • 2022-02-19
相关资源
相似解决方案