JQ给按钮设置不可点击
要给按钮设置为不可点击,可以使用以下代码:
document.getElementById("myButton").disabled = true;
这会将id为"myButton"的按钮设置为不可点击。你可以将"myButton"替换为你的按钮的id。
原文地址: https://www.cveoy.top/t/topic/h0YR 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
要给按钮设置为不可点击,可以使用以下代码:
document.getElementById("myButton").disabled = true;
这会将id为"myButton"的按钮设置为不可点击。你可以将"myButton"替换为你的按钮的id。
原文地址: https://www.cveoy.top/t/topic/h0YR 著作权归作者所有。请勿转载和采集!