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

Function disable

assets/js/countingsort.js:146–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144
145// function to disable the button
146function disable()
147{
148 // To disable the button "Generate New Array"
149 document.getElementById("Button1").disabled = true;
150 document.getElementById("Button1").style.backgroundColor = "#d8b6ff";
151
152 // To disable the button "Counting Sort"
153 document.getElementById("Button2").disabled = true;
154 document.getElementById("Button2").style.backgroundColor = "#d8b6ff";
155}
156
157

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected