Home >Web Front-end >JS Tutorial >js and jquery set the disabled attribute to true to invalidate the button_javascript skills
Set the disabled attribute to true to indicate the unavailable state.
JS
document.getElementByIdx("btn").disabled=true;
jquery
$("#btn").attr("disabled", true);
html
<input type="button" value="提交" id="btn">