Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
 
PREVIOUS NEXT
Tagged: #javascript #disable #input
ADD COMMENT
Topic
Name
2+3 =