js和jquery设置disabled属性为true使按钮失效
摘要:设置disabled属性为true即为不可用状态。JSdocument.getElementByIdx("btn").disabled=tr...
设置disabled属性为true即为不可用状态。
JS
document.getElementByIdx("btn").disabled=true;
jquery
$("#btn").attr("disabled", true);
html
<input type="button" value="提交" id="btn">
【js和jquery设置disabled属性为true使按钮失效】相关文章:
★ js设置document.domain实现跨域的注意点分析
★ javascript实现table选中的行以指定颜色高亮显示