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

Function disable

assets/js/mergesort.js:166–175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164
165// function to disable the button
166function disable()
167{
168 // To disable the button "Generate New Array"
169 document.getElementById("Button1").disabled = true;
170 document.getElementById("Button1").style.backgroundColor = "#d8b6ff";
171
172 // To disable the button "Merge Sort"
173 document.getElementById("Button2").disabled = true;
174 document.getElementById("Button2").style.backgroundColor = "#d8b6ff";
175}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected