Answers for "html input disabled"

30

turn off autocomplete input html

<form method="post" action="/post/" autocomplete="off">
	<!-- The entire form has autocomplete disabled. -->
</form>

<!-- or you turn it off for just one input -->
<input type="text" autocomplete="off">
Posted by: Guest on March-28-2020
2

javascript disable input

//javascript disable
document.getElementById("id").disabled = true;
//javascript enable
document.getElementById("id").disabled = false;

//jquery disable
$('#id').attr("disabled", true);
//enable
$('#id').attr("disabled", false);
Posted by: Guest on May-25-2020
2

disable input type button in html

<input type="button" disabled value="Submit">
Posted by: Guest on November-26-2020

Browse Popular Code Answers by Language