MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / disable

Function disable

assets/js/linearsearch.js:96–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94
95// function to disable the button
96function disable()
97{
98 // To disable the button "Generate New Array"
99 document.getElementById("Button1").disabled = true;
100 document.getElementById("Button1").style.backgroundColor = "#d8b6ff";
101
102 // To disable the button "Linear Search"
103 document.getElementById("Button2").disabled = true;
104 document.getElementById("Button2").style.backgroundColor = "#d8b6ff";
105}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected