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

Function disable

assets/js/selectionsort.js:127–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125
126// function to disable the button
127function disable()
128{
129 // To disable the button "Generate New Array"
130 document.getElementById("Button1").disabled = true;
131 document.getElementById("Button1").style.backgroundColor = "#d8b6ff";
132
133 // To disable the button "Selection Sort"
134 document.getElementById("Button2").disabled = true;
135 document.getElementById("Button2").style.backgroundColor = "#d8b6ff";
136}
137

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected