Answers for "js disabled input"

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
0

disable input box javascript

document.getElementById("myText").disabled = true;// <input id = "myText"/>
Posted by: Guest on September-08-2020
0

diable input javascript

dom_element.disabled = true; 	//where dom_element is an input element
Posted by: Guest on October-03-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language